ubuntu:file:rename_duplicate_files
This is an old revision of the document!
Ubuntu - File - Rename duplicate files
Renames duplicate files so you get the latest copy and not a bunch of duplicates.
for i in */*/*\(1\)*; do mv -f "$i" "${i/ (1)}"; done
Example:
`abba/forever_gold_(disc_1__abba_gold)/19-waterloo (1).mp3' -> `abba/forever_gold_(disc_1__abba_gold)/19-waterloo.mp3'
ubuntu/file/rename_duplicate_files.1581636476.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)