Batch mv file in terminal

Jul 30 2013 Published under Linux

Following command will be useful to move a list of files to some folders in terminal

$ ls | grep -v Folder | xargs -I {} mv {} Folder

the command roughly translates to:
list all files in this directory | excluding Folder | and move the listed files to Folder.

Comments Off

Comments are closed at this time.

Login