Search Results

Search: Posts Made By: Kim Walisch
36,814
Posted By Kim Walisch
Ok, so I cannot use this variation. Is there an...
Ok, so I cannot use this variation. Is there an other way to do it, without using for or while and comparing each filename?
36,814
Posted By Kim Walisch
How to move all files except one?
Hello,

I have to move all files, except one, from one directory to another. I tried it with mv and find:

mv -f $(find $SOURCE -maxdepth 1 ! -name "FileNotToMove") $TARGET

It nearly worked...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy