Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2003 19:21:37 -0500
From:      Larry Rosenman <ler@lerctr.org>
To:        James Long <james_mapson@umpquanet.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do I change the extensions on a slew of files
Message-ID:  <13950000.1063412497@lerlaptop.lerctr.org>
In-Reply-To: <20030913001150.GA5743@ns.museum.rain.com>
References:  <024201c37283$60b7b400$0800a8c0@master> <88930000.1062638899@lerlaptop.lerctr.org> <20030913001150.GA5743@ns.museum.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========EEA920EB1D709571AB46==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



--On Friday, September 12, 2003 17:11:50 -0700 James Long=20
<james_mapson@umpquanet.com> 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=3D`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=3D`echo $i | sed -e "s/inc$/htm/g"`
>
> is better, no?
Yep, and some other kind folks pointed this out.

Thanks,
LER



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

--==========EEA920EB1D709571AB46==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/YmMUrRNGhTxJvdYRAmQQAJ93RYvqCkX6AulwaP6TrZRu+Cl1aACgmavq
Z5gF77SBdqg7Zt+5GHDyoq0=
=NufU
-----END PGP SIGNATURE-----

--==========EEA920EB1D709571AB46==========--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13950000.1063412497>