add escape ama

This commit is contained in:
stubbfel
2016-06-24 01:03:26 +02:00
parent 010000e5cd
commit 262c3e3ae5

9
escape_amazone_mp3.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
ROOT_PATH=$1
find "$ROOT_PATH" -type d | perl-rename 's/[\s\(\),;]/_/g'
find "$ROOT_PATH" -type d | perl-rename 's/__/_/g'
find "$ROOT_PATH" -type d | perl-rename 's/_$//g'
find "$ROOT_PATH" -type f | perl-rename 's/\w+_\(disc_[0-9]\)_//g'
find "$ROOT_PATH" -type f | perl-rename 's/[\s\(\),;]/_/g'
find "$ROOT_PATH" -type f | perl-rename 's/__/_/g'
find "$ROOT_PATH" -type f | perl-rename 's/_.mp3/.mp3/g'