[bash] search empty folder and mv to ./empty

find ./ -depth -type d -empty -exec mv “{}” ./empty/  \;

test:

find ./ -depth -type d -empty -exec echo “{}” ./empty/  \;

 


Comments are closed.