CS>> by using perl like this:
CS>> 
CS>> while(<*.for>) {
CS>>   $oldname = $_;
CS>>   s/\.for$/\.f/;
CS>>   rename $oldname, $_;
CS>> }
CS>> 
CS>> this takes all filenames ending with .for and renames them to .f

There's a command, named ren, which does exactly this. 

-- 
[EMAIL PROTECTED]      \/  There shall be counsels taken
Stanislav Malyshev      /\  Stronger than Morgul-spells
phone +972-3-9316425    /\              JRRT LotR.
http://sharat.co.il/frodo/      whois:!SM8333



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to