Created
November 9, 2016 23:13
-
-
Save bxt/4b18eba7ccba02a26da7bf8b3cfaaa7b to your computer and use it in GitHub Desktop.
Keep only 1/50 of all files in a directory, remove others forever
This file contains 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
ls | awk 'NR%50!=25' | xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment