Monday, April 19, 2010

[Level 2] Remove all folders without any file.

If you want to remove all folders without any file, you can use the command to remove it.
# find ./ | sort -r | xargs rmdir 2>/dev/null

Wish this helps.

regards,
Stanley Huang