979Batch Rename Files with rename
Batch renaming files on the command line, in this case screenshot to more descriptive names:
brew install rename
Dry run:
rename -n 's/Screen Shot/w2_OpenSCAD/' *.jpg
Replace, remove the -n
flag:
rename 's/Screen Shot/w2_OpenSCAD/' *.jpg
-z
sanitizes the file name, replacing empty spaces with _.