I'm trying to move files that do NOT end in .part into a sub-folder called test2. I have tried a couple of approaches but neither work.
I have tried
Code:
mv -type f !(*.part) /test2
Which does not work
I have also tried
Code:
find -type f ! -name "*.part" -exec mv -f {} \; /test2
Am I close? Certainly the code
Code:
find -type f ! -name "*.part"
returns the correct files, I just then need to move them to another folder.
Many thanks for any help
Tim