如何删除以2011XXXX开头的文件


0

我有一堆我需要删除的文件,它们都是从2011XXXX开始的。我该如何删除它们。到目前为止我有这个命令:

ls | grep 2011 | xargs rm 

它有效,但是有更好的方法吗?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.