Getting file sizes

Michael ODonnell michael.odonnell at comcast.net
Mon Oct 22 09:30:53 EDT 2007



More than you asked for, but here's a command that reports
total space occupied by all files with names ending in .jpg,
recursively from the current directory (but not crossing mount
points) and which is also a gratuitous example of the Process
Substitution facility mentioned in a previous thread:

   du -c -h --files0-from=<(find . -xdev -type f -name "*.jpg" -print0 2>/dev/null) | tail -1
 


More information about the gnhlug-discuss mailing list