Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active October 28, 2017 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/9aa43b2acc5ac6df5830 to your computer and use it in GitHub Desktop.
Save weshouman/9aa43b2acc5ac6df5830 to your computer and use it in GitHub Desktop.
remove all files except for specified ones #bash
find . -type f -not -name '*.s' -not -name '*.sh' -not -name '*.txt' | xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment