Created
May 24, 2012 20:19
-
-
Save jaredcacurak/2783962 to your computer and use it in GitHub Desktop.
Remove all but the five most recent text files starting with the prefix "boo" in the working directory without prompting.
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
| for i in `ls -t boo*.txt | sed '1,5d'`; do rm -f $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment