Skip to content

Instantly share code, notes, and snippets.

@AndrewRussellHayes
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewRussellHayes/11340580 to your computer and use it in GitHub Desktop.
Save AndrewRussellHayes/11340580 to your computer and use it in GitHub Desktop.
remove .added extension from all files in directory
rename 's/\.added$//' *.added
find . -name '*.torrent.added' -print | sed 's/\(.*\)\.torrent.added/ & \1.torrent/' | xargs -L1 echo mv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment