Thursday, April 21, 2011

How to find files and move the files to folder in Linux

locate *.zip | grep backup | grep accountname | xargs -t -i mv {} /home/accountname/dump/

This will find all the zip files with the name consist of backup and accountname and then move them to a dump folder.

No comments: