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 untested,  mycomputer% = cmd line prompt 

mycomputer% perl -ews  foreach $files (<./*>) {rename($file,"new-$file");}


Am I on the right track?

Thanks

Dave

PS: Is there a mailing list or any good web resources for learning UNIX?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to