bash:rename_multiple_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
bash:rename_multiple_files [2020/07/15 09:30] – external edit 127.0.0.1 | bash:rename_multiple_files [2021/01/26 12:30] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BASH - Rename multiple files ====== | ||
- | |||
- | The **rename** command which is part of the Perl installation helps. | ||
- | |||
- | ---- | ||
- | |||
- | To add a ' | ||
- | |||
- | <code bash> | ||
- | rename ' | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | To make the filenames lowercase: | ||
- | |||
- | <code bash> | ||
- | rename ' | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | To remove all double characters: | ||
- | |||
- | <code bash> | ||
- | rename ' | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | You have many JPEG files that look like “img0000154.jpg” but you want the first five zeros removed as you don’t need them: | ||
- | |||
- | <code bash> | ||
- | rename ' | ||
- | </ | ||
- | |||
- | |||
- | In fact you can use any Perl operator as an argument. | ||
- | |||
bash/rename_multiple_files.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1