Unix commands on multiple files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ammo325
    Confirmed User
    • Jan 2001
    • 467

    #1

    Unix commands on multiple files

    Ok,

    I am asking for some ways to copy all files called lot.html from mutiple directories and making the copies name as lota.html. Can this be done easily or do I need to go into all 800 directories and do it manually?

    Thanks for any help on this.
    Submit to Lostbush
  • u-Bob
    there's no $$$ in porn
    • Jul 2005
    • 33063

    #2
    perl is your friend

    Comment

    • LBBV
      Confirmed User
      • Aug 2002
      • 936

      #3
      Here's a small PERL script I whipped up for you that should do the trick...

      http://lbbv.com/rename.txt

      Upload it as ASCII one directory up from all the files you wish to rename and then run "perl rename.txt".

      NOTE: USE AT YOUR OWN RISK. I ACCEPT NO RESPONIBILITY FOR WHAT THIS CODE MAY DO...

      You might want to create a create a test directory first and test it there before running it on your 800 directories.

      -- Bill
      National Net Hosting. Handled.
      See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN
      [email protected] | 888-4-NATNET | www.nationalnet.com

      Comment

      Working...