GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Unix commands on multiple files (https://gfy.com/showthread.php?t=517930)

ammo325 09-18-2005 12:32 PM

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.

u-Bob 09-18-2005 03:46 PM

perl is your friend :)

LBBV 09-18-2005 04:48 PM

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


All times are GMT -7. The time now is 01:05 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123