wiredfool

Bash/unix file renaming

Of course, it’s possible but it’s not quite as easy as saying mv *.txt *.html.

So that I remember this:
for i in \`find *.txt\` ; do mv $i ${i/txt/html}; done

references: here and here

No comments

No comments yet. Be the first.

Leave a reply

You must be logged in to post a comment.