Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Tidy up filenames in Humble Bundle Red Sonya 50th Anniversary bundle
- # Quick and messy but works
- # If you use wget to download, you may need to get rid of your download key first -
- # rename 's/.gamekey[=\&A-Za-z0-9]*//' *
- rename 's/_/ /' *
- rename 's/_/ /' *
- rename 's/_/ /' *
- rename 's/_/ /' *
- rename 's/ vol/ Vol /' *
- rename 's/ issues/ 0/' *
- rename 's/ 010/ 10/' *
- rename 's/ 011/ 11/' *
- rename 's/ 012/ 12/' *
- rename 's/ 013/ 13/' *
- rename 's/ Vol 5 01/Vol 5 1/' *
- rename 's/ Vol 5 02/Vol 5 2/' *
- rename 's/redsonjaVol 5 1.cbz/redsonjaVol 5 01.cbz/' *
- rename 's/redsonjaVol 5 2.cbz/redsonjaVol 5 02.cbz/' *
- rename 's/redsonjaVol 5/redsonja Vol 5/' *
- rename 's/redsonja/Red Sonja/' *
- rename 's/queensonja/Queen Sonja/' *
- rename 's/ ageofchaos/ - Age of Chaos/' *
- rename 's/birthofshedevil/ - Birth of the She-Devil/' *
- rename 's/blacktower Vol / - The Black Tower 0/' *
- rename 's/queenofplagues/ - Queen of Plagues/' *
- rename 's/revengeofthegods Vol / - Revenge of the Gods 0/' * # Listed as Vol not Issue
- rename 's/shedevilwithasword/- She-Devil With a Sword/' *
- rename 's/thesuperpowers/- The Superpowers/' *
- rename 's/vulturescircle Vol / - Vultures Circle 0/' * # Listed as Vol not Issue
- rename 's/worldsaway/- Worlds Away/' *
- rename 's/theadventuresof/The Adventures of /' *
- rename 's/thefurtheradventuresof/The Further Adventures of /' *
- rename 's/vampirellaand/Vampirella and /' *
- rename 's/invincibleRed Sonja 01/Invincible Red Sonja 01/' *
- rename 's/legendsofRed Sonja collection/Legends of Red Sonja Collection/' *
- rename 's/Red Sonjaandcuboneshot/Red Sonja and Cub [one-shot]/' *
- rename 's/Red Sonjaandtheballadoftheredgoddess/Red Sonja - The Ballad of the Red Goddess/' *
- rename 's/Red Sonja monsterisle/Red Sonja - Monster Isle [one-shot]/' *
- rename 's/Red Sonja onemoreday/Red Sonja - One More Day [one-shot]/' *
- rename 's/Red Sonjawrathofthegods/Red Sonja - Wrath of the Gods/' *
- # Rename 2005 run to add date - remove if not wanted
- rename 's/Red Sonja - She-Devil With a Sword 0/Red Sonja - She-Devil With a Sword [2005] Vol /' *
- rename 's/Red Sonja - She-Devil With a Sword 1/Red Sonja - She-Devil With a Sword [2005] Vol 1/' *
- # Rename 2013 run to add date - remove if not wanted
- rename 's/Red Sonja - Queen of Plagues Vol 1/Red Sonja [2013] Vol 1 - Queen of Plagues/' *
- rename 's/Red Sonja - Queen of Plagues Vol 2/Red Sonja [2013] Vol 2 - The Art of Blood and Fire/' *
- rename 's/Red Sonja - Queen of Plagues Vol 3/Red Sonja [2013] Vol 3 - The Forgiving of Monsters/' *
- # Rename 2016 run to add date - remove if not wanted
- rename 's/Red Sonja - Worlds Away/Red Sonja [2016] - Worlds Away/' *
- # Rename 2019 run to add date - remove if not wanted
- rename 's/Red Sonja Vol 5/Red Sonja [2019]/' *
- # missed a double-space somewhere
- rename 's/ / /' *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement