This is most likely an easy one.
But i am writing a bash script to search for certain file extensions and then move the files to another directory. It works fine except that it searches the directory that the files are moved too.
find / -noleaf -iname "*.bak" -exec mv {} dump /;
I have tried the -path and -prune but it does not work for me or i have them in the worng places????
But i am writing a bash script to search for certain file extensions and then move the files to another directory. It works fine except that it searches the directory that the files are moved too.
find / -noleaf -iname "*.bak" -exec mv {} dump /;
I have tried the -path and -prune but it does not work for me or i have them in the worng places????