Possible Duplicate:
Remove all files but one with rm
In unix, to remove zip files in a directory one can simply type
rm *.zip
How can one remove everything except zip files?
In unix, to remove zip files in a directory one can simply type
How can one remove everything except zip files?
| |||
|
feedback
|
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
This appears to work. The ! represents "not". extglob needs to be enabled in the shell behavior settings for this to work. It is probably already enabled... but if not, enable it with:
And after answering this... indeed Ignacio Vazquez-Abrams you are correct. It is pretty much duplicate. | ||||
|
feedback
|
|
Try creating a list then removing the file from the list. Ex.
the call
| |||||
|
feedback
|