Skip to content

Instantly share code, notes, and snippets.

@tspicer
Created July 29, 2014 16:39
Show Gist options
  • Save tspicer/fce40c53db64df5188e1 to your computer and use it in GitHub Desktop.
Save tspicer/fce40c53db64df5188e1 to your computer and use it in GitHub Desktop.
remove files without touch subdir
find /path/ -type f -print0 | xargs -0 -I file rm -f file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment