Re: PERL / UNIX File manipulation

2001-08-17 Thread Elaine -HFB- Ashton
David Gilden [[EMAIL PROTECTED]] quoth: *> *>mycomputer% perl -ews foreach $files (<./*>) {rename($file,"new-$file");} *> *>Am I on the right track? To pain, yes :) Check out File::Find and you might also learn the joys of your shell with sed and awk :) http://www.perlfaq.com/cgi-bin/view?view_

PERL / UNIX File manipulation

2001-08-17 Thread David Gilden
Hi, How would you approach the following: in a directory (on a UNIX box) file-a file-b file-c file-d This what I like have after I run a script or a mysterious UNIX command: 1-file-a 2-file-b 3-file-c 4-file-d *** OR *** new-file-a new-file-b new-file-c new-file-d Possible script untest