I have a bunch of files i need to delete, they all start with 2011XXXX. How would i delete them. So far i have this command:
ls | grep 2011 | xargs rm
And it works, but is there a better way to do this ?
|
I have a bunch of files i need to delete, they all start with 2011XXXX. How would i delete them. So far i have this command:
And it works, but is there a better way to do this ? | |||
|
feedback
|
|
If the files are all in the current folder, how about just | |||||
feedback
|