5 Comments


  1. Hey, this made my day! Lot easier than find exec etc.

    Reply

  2. I just found that adding is actually pretty easy. I wanted to append artist name to the front of every file in a folder of music by an artist so I just did:

    rename 's//artistname-/' *.mp3

    Easier than I expected :).

    Reply
  3. sean

    that's remove and replace characters, is there a way to add

    Reply
    • Linerd

      @Sean - There may be a better way, but you can still add characters using the replace feature. Say you wanted to add leading zeros to the numbers in the files above.

      rename 's/r_/r_0/' *.txt
      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

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=""> <strike> <strong>