Date: Fri, 12 Sep 2003 17:11:50 -0700 From: James Long <james_mapson@umpquanet.com> To: Larry Rosenman <ler@lerctr.org> Cc: freebsd-questions@freebsd.org Subject: Re: How do I change the extensions on a slew of files Message-ID: <20030913001150.GA5743@ns.museum.rain.com> In-Reply-To: <88930000.1062638899@lerlaptop.lerctr.org> References: <024201c37283$60b7b400$0800a8c0@master> <88930000.1062638899@lerlaptop.lerctr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030913001150.GA5743>