Merge branch 'error-unalowed-chars'
This commit is contained in:
commit
6152b4895b
@ -46,6 +46,9 @@ function main() {
|
|||||||
db_query "DELETE From File WHERE (Size=0 OR Size IS NULL OR MD5='' OR MD5 IS NULL OR Name='') AND (TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP);"
|
db_query "DELETE From File WHERE (Size=0 OR Size IS NULL OR MD5='' OR MD5 IS NULL OR Name='') AND (TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP);"
|
||||||
db_query "DELETE FROM File WHERE Folder LIKE 'Clone/%' OR Folder LIKE '.Trash-%';"
|
db_query "DELETE FROM File WHERE Folder LIKE 'Clone/%' OR Folder LIKE '.Trash-%';"
|
||||||
#find dublicates !
|
#find dublicates !
|
||||||
|
|
||||||
|
#Solve SQL ERROR: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"
|
||||||
|
#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
|
#erselle zwei dateilisten
|
||||||
|
Loading…
Reference in New Issue
Block a user