Bulk renaming files with the rename command
Conclusion
Once you understand its syntax and use, the rename
command is an efficient and very powerful utility for virtually any bulk renaming job you have in mind – from converting file names to title case, to moving files into different directories, to changing month numbers into month names (e.g., 2015-02-17
into 2015-Feb-17
). All of these jobs and more can be performed with rename
. Furthermore, several jobs can be combined into one command for even more power and flexibility.
This article has covered a number of examples to showcase the major features of rename
, but I have only scratched the surface in terms of what can be done with the command. Hopefully, you will be inspired to come up with your own rename
commands.
Infos
- Thunar: https://docs.xfce.org/xfce/thunar/start
- rename: https://metacpan.org/release/File-Rename
- Perl expressions: https://perldoc.perl.org/perlop#Regexp-Quote-Like-Operators
- Regular expression syntax: https://perldoc.perl.org/perlre#Regular-Expressions
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)