Advertisement
Guest User

Tidy up Filenames Humble Bundle Red Sonya Bundle

a guest
Jul 6th, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 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/ 010/ 10/' *
  16. rename 's/ 011/ 11/' *
  17. rename 's/ 012/ 12/' *
  18. rename 's/ 013/ 13/' *
  19. rename 's/ Vol 5 01/Vol 5 1/' *
  20. rename 's/ Vol 5 02/Vol 5 2/' *
  21. rename 's/redsonjaVol 5 1.cbz/redsonjaVol 5 01.cbz/' *
  22. rename 's/redsonjaVol 5 2.cbz/redsonjaVol 5 02.cbz/' *
  23. rename 's/redsonjaVol 5/redsonja Vol 5/' *
  24.  
  25. rename 's/redsonja/Red Sonja/' *
  26. rename 's/queensonja/Queen Sonja/' *
  27. rename 's/ ageofchaos/ - Age of Chaos/' *
  28. rename 's/birthofshedevil/ - Birth of the She-Devil/' *
  29. rename 's/blacktower Vol / - The Black Tower 0/' *
  30. rename 's/queenofplagues/ - Queen of Plagues/' *
  31. rename 's/revengeofthegods Vol / - Revenge of the Gods 0/' * # Listed as Vol not Issue
  32. rename 's/shedevilwithasword/- She-Devil With a Sword/' *
  33. rename 's/thesuperpowers/- The Superpowers/' *
  34. rename 's/vulturescircle Vol / - Vultures Circle 0/' * # Listed as Vol not Issue
  35. rename 's/worldsaway/- Worlds Away/' *
  36. rename 's/theadventuresof/The Adventures of /' *
  37. rename 's/thefurtheradventuresof/The Further Adventures of /' *
  38. rename 's/vampirellaand/Vampirella and /' *
  39.  
  40. rename 's/invincibleRed Sonja 01/Invincible Red Sonja 01/' *
  41. rename 's/legendsofRed Sonja collection/Legends of Red Sonja Collection/' *
  42. rename 's/Red Sonjaandcuboneshot/Red Sonja and Cub [one-shot]/' *
  43. rename 's/Red Sonjaandtheballadoftheredgoddess/Red Sonja - The Ballad of the Red Goddess/' *
  44. rename 's/Red Sonja monsterisle/Red Sonja - Monster Isle [one-shot]/' *
  45. rename 's/Red Sonja onemoreday/Red Sonja - One More Day [one-shot]/' *
  46. rename 's/Red Sonjawrathofthegods/Red Sonja - Wrath of the Gods/' *
  47.  
  48. # Rename 2005 run to add date - remove if not wanted
  49. rename 's/Red Sonja - She-Devil With a Sword 0/Red Sonja - She-Devil With a Sword [2005] Vol /' *
  50. rename 's/Red Sonja - She-Devil With a Sword 1/Red Sonja - She-Devil With a Sword [2005] Vol 1/' *
  51.  
  52. # Rename 2013 run to add date - remove if not wanted
  53. rename 's/Red Sonja - Queen of Plagues Vol 1/Red Sonja [2013] Vol 1 - Queen of Plagues/' *
  54. rename 's/Red Sonja - Queen of Plagues Vol 2/Red Sonja [2013] Vol 2 - The Art of Blood and Fire/' *
  55. rename 's/Red Sonja - Queen of Plagues Vol 3/Red Sonja [2013] Vol 3 - The Forgiving of Monsters/' *
  56.  
  57. # Rename 2016 run to add date - remove if not wanted
  58. rename 's/Red Sonja - Worlds Away/Red Sonja [2016] - Worlds Away/' *
  59.  
  60. # Rename 2019 run to add date - remove if not wanted
  61. rename 's/Red Sonja Vol 5/Red Sonja [2019]/' *
  62.  
  63. # missed a double-space somewhere
  64. rename 's/ / /' *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement