Skip to content

Instantly share code, notes, and snippets.

@emalgholzad
Created March 7, 2017 09:59
Show Gist options
  • Save emalgholzad/5c70152bcded4f202113d3809031f066 to your computer and use it in GitHub Desktop.
Save emalgholzad/5c70152bcded4f202113d3809031f066 to your computer and use it in GitHub Desktop.
Remove all files starting with a certain string
Delete all files in current directory and its sub-directories where the file name starts with "foo":
$ find . -type f -name foo\* -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment