fix filename itself ...

This commit is contained in:
6543 2019-05-15 11:31:16 +02:00
parent 951b489c46
commit d26999efed
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ function main() {
#find dublicates !

#Solve SQL ERROR: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"
db_query "ALTER TABLE File CHANGE Name Name TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;"
db_query "ALTER TABLE File CHANGE Folder Folder TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;"
#find <specific path> | while read line; do DIR="$(dirname "$line")"; File="$(basename "$line")"; mv -v "$DIR/$File" "$DIR/$(echo "$File" | tr -cd '[:alnum:][:blank:]_.-' | tr '[:blank:]' ' ' | sed 's/\ \ /\ /g')"; done
}

#erselle zwei dateilisten