Mar 242009
 

Situation:

I have multiple files with extension .sh.modified and I need to rename them all into .sh extension.

Solution:

for file in *.sh.modified; do mv ${file} ${file%sh.modified}.sh; done

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)