how to combine 'du' and 'ls'

Griffith Feeney gfeeney at gfeeney.com
Sun Dec 17 17:25:19 PST 2000


How to combine 'ls' and 'du' to get a listing of the space taken by each
directory in /?

'du -hs bin boot usr' will show size of bin, boot and usr, but you have to
type each directory name.

'du -hs bin boot usr < ls' doesn't work, nor does 'ls | du -hs -'. Can one
use ` somehow?



More information about the LUAU mailing list