Moving Files in Subdirectories

ls -l | grep drw | awk ‘{ system(“mv ” $NF “/* ./”) }’

This command basically moves  whatever in subdirectories to the current directory. However, I am not sure what happens when files in the subdirectories have the same name.

There are no comments on this post

Leave a Reply