Last active
August 29, 2015 14:00
-
-
Save AndrewRussellHayes/11340580 to your computer and use it in GitHub Desktop.
remove .added extension from all files in directory
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
rename 's/\.added$//' *.added |
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
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