Advertisement
Guest User

Tidy up Filenames Humble Bundle Red Sonya Bundle

a guest
Jul 7th, 2023
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. #!/bin/bash
  2. # Tidy up filenames in Humble Bundle Red Sonya 50th Anniversary bundle
  3. # Quick and messy but works
  4.  
  5. # If you use wget to download, you may need to get rid of your download key first -
  6. # rename 's/.gamekey[=\&A-Za-z0-9]*//' *
  7.  
  8. rename 's/_/ /' *
  9. rename 's/_/ /' *
  10. rename 's/_/ /' *
  11. rename 's/_/ /' *
  12. rename 's/ vol/ Vol /' *
  13.  
  14. rename 's/ issues/ 0/' *
  15. rename 's/ issue/ 0/' *
  16. rename 's/ 010/ 10/' *
  17. rename 's/ 011/ 11/' *
  18. rename 's/ 012/ 12/' *
  19. rename 's/ 013/ 13/' *
  20. rename 's/ Vol 5 01/Vol 5 1/' *
  21. rename 's/ Vol 5 02/Vol 5 2/' *
  22. rename 's/redsonjaVol 5 1.cbz/redsonjaVol 5 01.cbz/' *
  23. rename 's/redsonjaVol 5 2.cbz/redsonjaVol 5 02.cbz/' *
  24. rename 's/redsonjaVol 5 1.pdf/redsonjaVol 5 01.pdf/' *
  25. rename 's/redsonjaVol 5 2.pdf/redsonjaVol 5 02.pdf/' *
  26. rename 's/redsonjaVol 5/redsonja Vol 5/' *
  27.  
  28. rename 's/redsonja/Red Sonja/' *
  29. rename 's/queensonja/Queen Sonja/' *
  30. rename 's/ ageofchaos/ - Age of Chaos/' *
  31. rename 's/birthofshedevil/ - Birth of the She-Devil/' *
  32. rename 's/blacktower Vol / - The Black Tower 0/' *
  33. rename 's/queenofplagues/ - Queen of Plagues/' *
  34. rename 's/revengeofthegods Vol / - Revenge of the Gods 0/' * # Listed as Vol not Issue
  35. rename 's/shedevilwithasword/- She-Devil With a Sword/' *
  36. rename 's/thesuperpowers/- The Superpowers/' *
  37. rename 's/vulturescircle Vol / - Vultures Circle 0/' * # Listed as Vol not Issue
  38. rename 's/worldsaway/- Worlds Away/' *
  39. rename 's/theadventuresof/The Adventures of /' *
  40. rename 's/thefurtheradventuresof/The Further Adventures of /' *
  41. rename 's/vampirellaand/Vampirella and /' *
  42.  
  43. rename 's/invincibleRed Sonja 01/Invincible Red Sonja 01/' *
  44. rename 's/legendsofRed Sonja collection/Legends of Red Sonja Collection/' *
  45. rename 's/Red Sonjaandcuboneshot/Red Sonja and Cub [one-shot]/' *
  46. rename 's/Red Sonjaandtheballadoftheredgoddess/Red Sonja - The Ballad of the Red Goddess/' *
  47. rename 's/Red Sonja monsterisle/Red Sonja - Monster Isle [one-shot]/' *
  48. rename 's/Red Sonja onemoreday/Red Sonja - One More Day [one-shot]/' *
  49. rename 's/Red Sonjawrathofthegods/Red Sonja - Wrath of the Gods/' *
  50.  
  51. # Rename 2005 run to add date - remove if not wanted
  52. rename 's/Red Sonja - She-Devil With a Sword 0/Red Sonja - She-Devil With a Sword [2005] Vol /' *
  53. rename 's/Red Sonja - She-Devil With a Sword 1/Red Sonja - She-Devil With a Sword [2005] Vol 1/' *
  54.  
  55. # Rename 2013 run to add date - remove if not wanted
  56. rename 's/Red Sonja - Queen of Plagues Vol 1/Red Sonja [2013] Vol 1 - Queen of Plagues/' *
  57. rename 's/Red Sonja - Queen of Plagues Vol 2/Red Sonja [2013] Vol 2 - The Art of Blood and Fire/' *
  58. rename 's/Red Sonja - Queen of Plagues Vol 3/Red Sonja [2013] Vol 3 - The Forgiving of Monsters/' *
  59.  
  60. # Rename 2016 run to add date - remove if not wanted
  61. rename 's/Red Sonja - Worlds Away/Red Sonja [2016] - Worlds Away/' *
  62.  
  63. # Rename 2019 run to add date - remove if not wanted
  64. rename 's/Red Sonja Vol 5/Red Sonja [2019]/' *
  65.  
  66. # missed a double-space somewhere
  67. rename 's/ / /' *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement