Bash is a free shell for Unix-like operating systems from the GNU Project.

learn more… | top users | synonyms

3
votes
4answers
100 views
+50

How do I find files and total their sizes?

I'd like to find a series of files (based on a wildcard expression) and total their disk usage. Something like this: $ find . -name 'flibble*' -ctime +90 -exec du -sh {} \; 2.1G ...
9
votes
1answer
749 views
+50

why doesn't a bash while loop exit when piping to terminated subcommand?

Why doesn't the command below exit? Rather than exit, the loop runs indefinitely. While I discovered this behavior using a more complex setup, the simplest form of the command reduces to the ...