Results 1 to 2 of 2

Thread: don't understand PERL/'rename', only need one command

  1. #1
    Join Date
    Nov 2007
    Beans
    254

    don't understand PERL/'rename', only need one command

    I want to change all the *.bmp files on my Ipod to be called cover.bmp . How do I do this? It should be recursive so it happens in all folders.

    I really don't understand PERL...
    they stole our revolution. we stole it back. they hired us to work on it. and now we're occupying the plant. -@mala

  2. #2
    Join Date
    Nov 2007
    Beans
    254

    Re: don't understand PERL/'rename', only need one command

    rename doesn't work recursively so please use this command (thanks to ferret @ #perl )

    Code:
     find . -name '*.bmp' -execdir mv {} cover.bmp \;
    they stole our revolution. we stole it back. they hired us to work on it. and now we're occupying the plant. -@mala

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •