Skip to content

Instantly share code, notes, and snippets.

@thil
Last active December 14, 2015 12:19
Show Gist options
  • Save thil/5085359 to your computer and use it in GitHub Desktop.
Save thil/5085359 to your computer and use it in GitHub Desktop.
remove every second file
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