Thursday, 15 January 2015

terminal - Changing file extensions for all files in a directory OSX -



terminal - Changing file extensions for all files in a directory OSX -

i have directory total of files 1 extension (.txt in case) want automatically convert extension (.md).

is there easy terminal 1 liner can utilize convert of files in directory different file extension?

or need write script regex?

you utilize this:

for old in *.txt; mv $old `basename $old .txt`.md; done

make re-create first!

osx terminal file-extension

No comments:

Post a Comment