January 20, 2022

rename in command line (maos)

 #for mac 

brew install rename

rename JPG jpg *.JPG 

#if you use barewords(protected) 

rename 's/\.JPG$/.jpg/' *.JPG 

 #mac os is case sensitive, that is why we need to do 2 renames 

rename 's/\.MOV$/.mov_/' *.MOV
rename 's/\.mov_$/.mov/' *.mov_

No comments:

Post a Comment

How to type letters with accent

Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/