[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

Comments

Post a Comment

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python