User Tools

Site Tools


ubuntu:file:rename_duplicate_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:file:rename_duplicate_files [2020/02/13 23:27] peterubuntu:file:rename_duplicate_files [2022/06/13 11:31] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - File - Rename duplicate files ====== 
- 
-Renames duplicate files so you get the latest copy and not a bunch of duplicates. 
- 
-<code bash> 
-for i in */*/*\(1\)*; do mv -f "$i" "${i/ (1)}"; done 
-</code> 
- 
-Example: 
- 
-<code bash> 
-`abba/forever_gold_(disc_1__abba_gold)/19-waterloo (1).mp3' -> `abba/forever_gold_(disc_1__abba_gold)/19-waterloo.mp3' 
-</code> 
- 
  
ubuntu/file/rename_duplicate_files.1581636476.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki