posted 15 years ago
That "dot" is your directory name. In this case, it's the relative location of your current working directory. If I do a "du -bs /var/log, I should get something like:
123765 /var/log
as a result.
Here's one way to get the value as a number:
DIRSIZE=`du -bs $dir | cut -f 1`
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.