|
Delete Files Except Certain Ones
Hi friends,
Suppose I have the following files in a directory:
abc
xyz.c
xyz.h
.......
totally 1000 files
1. How could I remove all files except those with .c at the end?
2. How about only except xyz.c and xyz.h??
(I don't want to move them to somewhere and put them back after
deleting all other files.)
Any smart command regarding rm ??
Thanks for your guidance in advance.
Will
|