rename in terminal mac code example
Example 1: rename shortcut mac
By far, the fastest way to rename a file is to:
select it and press Return.
Example 2: change file name in terminal
mv oldfile.txt newfile.txt
Example 3: command line rename folder mac
mv old-folder-name new-folder-name
Example 4: change file name in terminal
rename 's/.prog/.prg/' *.prog