Goto the respective directory and type the below commandfind . -type f -name FILE_TYPE -exec mv -i {} DIRECTORY
Explanation:
-type f => for files-name => name of the file ( here we use wildcard *.EXTENSION )
-exec => execute command when any file is foundexample command:
find /home -type f -name '*.mp3' -exec mv -i {} /somedir \;
Comments
Post a Comment