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?
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to