Created
December 21, 2017 03:24
-
-
Save snappytux/8db73d52b17f53e59459b5814797a263 to your computer and use it in GitHub Desktop.
rm all files except some
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -type f -not -name '*ignore' -not -name 'bk.sh' -not -name 'rmFile.sh' | xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment