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 ?
If the files are all in the current folder, how about just rm 2011*? :)
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago