shell - Rename files in osx from list -



shell - Rename files in osx from list -

im using mac.i have several folders containing png images.

i have list of original file names(the images) , names want rename them to.

can 1 help me script ? (all methods have gone through pattern matching based , don't mention renaming using list)

i have list csv this

"crème brulee mica","e2dbcf"

the old name "crème brûlée mica.png" , new name should "e2dbcf.png".like have hundreds of files

sed -e "s/^\"\([^\"]*\)\",\"\([^\"]*\)\"$/mv '\1' '\2'/" | sh

... provided not have line breaks or single or double quotes in file names.

take out | sh test.

osx shell

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -