1. Computing

Discuss in my forum

Juergen Haas

Renaming Files with the find, sed, and sh commands

By January 5, 2013

Follow me on:

By combining the find, sed, and sh commands using the pipe mechanism you can compose flexible and powerful command lines. For example, in one step you can rename all files whose name match specified criteria under a specified directory by replacing parts of each file name. Read more...

Comments
January 10, 2013 at 11:00 am
(1) Robert says:

Your find command needs single quotes around the ‘*song*abc2009*.jpg ‘ to prevent wildcard expansion.
For a small number of files in the same directory echo *song*abc2009*.jpg will work.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.