From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <80c99e790910290906t36766978kcd38c9583392e038@mail.gmail.com> Date: Thu, 29 Oct 2009 16:42:54 +0000 Message-ID: <80c99e790910290942n5e0dd61aq6ae1b78395946110@mail.gmail.com> From: Lorenzo Bolla To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000e0cd2965e59de570477159a2f Subject: Re: [9fans] sed question (OT) Topicbox-Message-UUID: 9373e986-ead5-11e9-9d60-3106f5b1d025 --000e0cd2965e59de570477159a2f Content-Type: text/plain; charset=ISO-8859-1 I forgot the "9". This works for GNU sed version 4.2.1 L. On Thu, Oct 29, 2009 at 4:33 PM, Iruata Souza wrote: > On Thu, Oct 29, 2009 at 2:06 PM, Lorenzo Bolla wrote: > > To capitalize the first letter of each line wouldn't this be enough? > > s/^./\u&/ > > > > L. > > % echo rwrong | sed 's/^./\u&/' > urwrong > > --000e0cd2965e59de570477159a2f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I forgot the "9".
This works for GNU sed version 4.2.1
<= div>L.

On Thu, Oct 29, 2009 at 4:3= 3 PM, Iruata Souza <iru.muzgo@gmail.com> wrote:
On Thu, Oct 29, 2009 at 2= :06 PM, Lorenzo Bolla <lbolla@gmail.= com> wrote:
> To capitalize the first letter of each line wouldn't this be enoug= h?
> s/^./\u&/
>
> L.

% echo rwrong | sed 's/^./\u&/'
urwrong


--000e0cd2965e59de570477159a2f--