rename multiple files under linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    rename multiple files under linux

    how can i rename 1k files from xx.jpg in xx.gif from the command line?
  • Adult Site Traffic
    Confirmed User
    • Mar 2003
    • 5093

    #2
    I have a custom piece of code that's run from the command line. It's a pain in the ass.

    I have to move it to the folder I want to make the changes in and it won't do sub folders. I have to re-code it with any different variable that I want to change and then upload it, then run it from the box.

    If you want it I'll try to find it.

    Otherwise I have one that runs locally that will search/replace anything in any string on 1,000 files in 2 seconds.

    LMK and I will try to help you.
    .

    ALL Domains and Websites are GOING AWAY NOW! Ask me!
    Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

    .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

    Comment

    • mrkris
      Confirmed User
      • May 2005
      • 2737

      #3
      bash$ man find
      Take a look at -exec or create a shell script

      PHP-MySQL-Rails | ICQ: 342500546

      Comment

      • AgentCash
        Confirmed User
        • Feb 2002
        • 720

        #4
        for i in *; do echo mv $i "`echo $i | tr .jpg .gif `"; done | bash

        Comment

        Working...