Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Ordner
  4. find -depth -type d -execdir rename -v 's/Ä/Ae/g;
  5. s/Ö/Oe/g;
  6. s/Ü/ue/g;
  7. s/ä/ae/g;
  8. s/à/a/g;
  9. s/è/e/g;
  10. s/é/e/g;
  11. s/ö/oe/g;
  12. s/ü/ue/g;
  13. s/@/at/g;
  14. s/\"/-/g;
  15. s/\[/-/g;
  16. s/\]/-/g;
  17. s/\302\201/ue/g;
  18. s/\302\204/ae/g;
  19. s/\302\224/oe/g;
  20. s/\201/ue/g;
  21. s/\224/oe/g;
  22. s/\204/ae/g;
  23. s/\232/Ue/g;
  24. s/\207/./g;
  25. s/\200/./g;
  26. s/�/ae/g;
  27. s/ö/oe/g;
  28. s/ /_/g;
  29. s/,/_/g;
  30. s/\)/-/g;
  31. s/\(/-/g;
  32. s/\:/-/g;
  33. s/\&/und/g;
  34. s/\+/und/g;
  35. s/\x27/_/g;
  36. ' '{}' \;
  37.  
  38. #Datei
  39. find . -type f -exec rename -v 's/Ä/Ae/g;
  40. s/Ö/Oe/g;
  41. s/Ü/ue/g;
  42. s/ä/ae/g;
  43. s/à/a/g;
  44. s/è/e/g;
  45. s/é/e/g;
  46. s/ö/oe/g;
  47. s/ü/ue/g;
  48. s/@/at/g;
  49. s/\"/-/g;
  50. s/\[/-/g;
  51. s/\]/-/g;
  52. s/\302\201/ue/g;
  53. s/\302\204/ae/g;
  54. s/\302\224/oe/g;
  55. s/\201/ue/g;
  56. s/\224/oe/g;
  57. s/\204/ae/g;
  58. s/\232/Ue/g;
  59. s/\207/./g;
  60. s/\200/./g;
  61. s/�/ae/g;
  62. s/ö/oe/g;
  63. s/ /_/g;
  64. s/,/_/g;
  65. s/\)/-/g;
  66. s/\(/-/g;
  67. s/\:/-/g;
  68. s/\&/und/g;
  69. s/\+/und/g;
  70. s/\x27/_/g;
  71. ' '{}' \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement