I need a script to batch rename files on a server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jovigirl
    Confirmed User
    • Apr 2003
    • 1796

    #1

    I need a script to batch rename files on a server

    Sth like rename it! but server side done.
    Anyone knows of any?
    Thanks guys
    ICQ :333-548-380
  • tyler86ed
    Confirmed User
    • Jan 2004
    • 543

    #2
    Maybe a few more details...did you use the *

    Check out all our new fresh FETISH sites, Tons of hosted galleries and fresh new content.

    Comment

    • jovigirl
      Confirmed User
      • Apr 2003
      • 1796

      #3
      I need sth like rename all files in this directory to
      (some_prefix_I_choose)001.ext
      (some_prefix_I_choose)002.ext
      (some_prefix_I_choose)003.ext
      (some_prefix_I_choose)004.ext
      etc
      ICQ :333-548-380

      Comment

      • tyler86ed
        Confirmed User
        • Jan 2004
        • 543

        #4
        rn *.ext

        will change all files with that extension in the dir.

        Check out all our new fresh FETISH sites, Tons of hosted galleries and fresh new content.

        Comment

        • MaDalton
          I am Amazing Content!
          • Feb 2004
          • 39868

          #5
          Total Commander does batch rename via ftp
          AmazingContent.com - providing only the best content and service since 2003
          Monetize your content on Veegaz.com - one of Germanies largest VOD sites
          Got German traffic? We convert it into money for you!
          Email: oltecconsult [at] gmail [dot] com

          Comment

          • toddler
            Confirmed User
            • Jun 2002
            • 1911

            #6
            Originally posted by tyler86ed
            rn *.ext

            will change all files with that extension in the dir.
            huh? on what OS is that?
            http://www.flickr.com/photos/zoddler/

            Comment

            • skillfull
              Confirmed User
              • Apr 2003
              • 4716

              #7
              Originally posted by toddler
              huh? on what OS is that?
              ever heard of Unix ?
              mind at underdark dot cc
              SEO Analyst
              Thunder-Ball.net - Member

              Comment

              • sixxxth_sense
                So Fucking Banned
                • Nov 2003
                • 2430

                #8
                Originally posted by skillfull
                ever heard of Unix ?
                LOL

                Comment

                • jovigirl
                  Confirmed User
                  • Apr 2003
                  • 1796

                  #9
                  Originally posted by MaDalton
                  Total Commander does batch rename via ftp
                  This is cool

                  SSH is far too complicated to batch rename a lot of images in different directories.
                  ICQ :333-548-380

                  Comment

                  • Ash@phpFX
                    Confirmed User
                    • Nov 2003
                    • 4292

                    #10
                    easy done with php

                    Comment

                    • spentrent
                      Confirmed User
                      • Feb 2004
                      • 876

                      #11
                      Originally posted by asher
                      easy done with php
                      ...but only if you're the type who likes using sledgehammers on thumbtacks.

                      If you're on the bash command-line of your linux/bsd/unix host (which you probably are), do this:

                      Code:
                      $ cd /the/directory/where/my/files/are
                      
                      $ for i in *     [hit enter]
                      do               [hit enter]
                      mv $i prefix$i   [hit enter]
                      done             [hit enter]

                      Comment

                      Working...