User Tools

Site Tools


linux:mass-renaming

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
linux:mass-renaming [2018/08/05 16:01] Wulf Rajeklinux:mass-renaming [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 12: Line 12:
 Rename extension: Rename extension:
 <code>rename 's/\.pdf$/.doc/' *</code> <code>rename 's/\.pdf$/.doc/' *</code>
 +
 +Swapping parts of filename:
 +<code>rename 's/(.*) - Linkin Park (.*)$/Linkin Park - $1 $2/' *.mkv</code>
  
 for dry-run, use -n option! for dry-run, use -n option!
linux/mass-renaming.1533481292.txt.gz · Last modified: 2023/05/29 11:53 (external edit)