This is an old revision of the document!
bash loop
- This example will loop through all files and folders, and determine their disk usage (note that this particular example can actually be done without a bash loop, using only the du command)
- note that the symbols used are backticks, not single quotes (backtick is the key left of 1)
for file in `ls -1L`;do du -h -d 0 $file done