Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 787 Bytes

rename.md

File metadata and controls

34 lines (22 loc) · 787 Bytes

Using rename on the command line

Examples

for everything that includes the phrase epicgames-2019:

  • replace epicgames-2019 with beijing-2020
rename 's/epicgames-2019/beijing-2020/' *epicgames-2019*

for every file in the current directory:

  • replace the first instance of a lowercase letter with an uppercase version of itself
rename 's/([a-z])/\U$1/' ./*

Changing case with transliteration of characters using y/

rename 'y/A-Z/a-z/' ./*

Links