Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created June 17, 2014 18:29
Show Gist options
  • Save trikitrok/6891700dae3a891af523 to your computer and use it in GitHub Desktop.
Save trikitrok/6891700dae3a891af523 to your computer and use it in GitHub Desktop.
It deletes all the mp4 files found under the current folder. -print0 and -0 to avoid that a space in a filename is used as a delimiter -> Explained in http://stackoverflow.com/questions/16758525/how-to-use-xargs-with-filenames-containing-whitespaces
find . -name *.mp4 -print0 | xargs -0 rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment