mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
27 lines
538 B
Bash
Executable file
27 lines
538 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#srArgs="-d"
|
|
|
|
declare -A files
|
|
|
|
files=(
|
|
["Bibi_Blocksberg_15.03.07_08-30_zdf_30_TVOON_DE.mpg.avi"]="Bibi.Blocksberg..S01E06..Bibi.im.Dschungel.avi" # Remove 3 words from the beginning
|
|
);
|
|
|
|
if [ -f test.sh ]; then
|
|
sr="../saneRenamix.sh"
|
|
else
|
|
sr="./saneRenamix.sh"
|
|
fi
|
|
|
|
|
|
i=0
|
|
for file in "${!files[@]}"; do
|
|
echo -e "\033[37m${file}";
|
|
result="$($sr $srArgs -s -f "$file")";
|
|
if [ "$result" != "${files["$file"]}" ]; then
|
|
echo -e "\033[31m$file -> $result";
|
|
echo "'$result' != '${files[$file]}'";
|
|
fi
|
|
i=$(($i+1));
|
|
done;
|