--On Friday, September 12, 2003 17:11:50 -0700 James Long <[EMAIL PROTECTED]> wrote:

On Wed, Sep 03, 2003 at 08:28:19PM -0500, Larry Rosenman wrote:


from an sh type shell
for i in *.inc
do
z=`echo $i | sed -e "s/inc/htm/g"`
mv ${i} ${z}
done

(not tested, but should work.)

LER

What does it do with a file named

include.inc

z=`echo $i | sed -e "s/inc$/htm/g"`

is better, no?
Yep, and some other kind folks pointed this out.

Thanks,
LER



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to