[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: batch renaming
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.
--
frodo@sharat.co.il \/ 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 linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il