Last active
December 14, 2015 12:19
-
-
Save thil/5085359 to your computer and use it in GitHub Desktop.
remove every second file
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
ls | sed -n "p;N;" | xargs rm -r | |
#remove spaces from file | |
for file in *;do mv $file ${file// /};done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment