I need to find all files starting with the name NAME in a directory tree and remove all these files using one shell command.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
migrated from stackoverflow.com Oct 2 '12 at 13:40
|
to delete all files which name has name--- you can use
|
|||||||
|
|
Delete all files in current directory and its sub-directories where the file name starts with "foo":
NB: use with caution - back up first - also do a dry run first, e.g.
will just tell you the names of the files that would be deleted. |
|||
|
|
|
You can use
|
|||
|
|