ls | grep -v 'file-to-keep' | xargs rm
Created
August 6, 2015 05:40
-
-
Save therealechan/99b5834099c180036887 to your computer and use it in GitHub Desktop.
Delete all files expect one or two
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment