fix filename itself ...
This commit is contained in:
parent
951b489c46
commit
d26999efed
@ -48,8 +48,7 @@ function main() {
|
|||||||
#find dublicates !
|
#find dublicates !
|
||||||
|
|
||||||
#Solve SQL ERROR: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"
|
#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;"
|
#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
|
||||||
db_query "ALTER TABLE File CHANGE Folder Folder TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#erselle zwei dateilisten
|
#erselle zwei dateilisten
|
||||||
|
Loading…
Reference in New Issue
Block a user