bash:rename_multiple_files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bash:rename_multiple_files [2016/11/11 09:56] – created peter | 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.1478858168.txt.gz · Last modified: 2020/07/15 09:30 (external edit)