From owner-freebsd-questions Sat Oct 27 2:26:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from godzilla.fxprojects.com (godzilla.fxprojects.com [64.81.56.3]) by hub.freebsd.org (Postfix) with ESMTP id C5DA837B403 for ; Sat, 27 Oct 2001 02:26:35 -0700 (PDT) Received: (from michael@localhost) by godzilla.fxprojects.com (8.11.3/8.11.3) id f9R9QWp50451; Sat, 27 Oct 2001 02:26:32 -0700 (PDT) (envelope-from michael) Message-Id: <200110270926.f9R9QWp50451@godzilla.fxprojects.com> Subject: Re: your mail To: gmutch@global.co.za (Gavin Mutch) Date: Sat, 27 Oct 2001 02:26:32 -0700 (PDT) Cc: questions@FreeBSD.ORG In-Reply-To: from "Gavin Mutch" at Oct 27, 2001 11:17:38 AM From: "Michael McCaffrey" X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wc -l file > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0005_01C15ED8.FC7111E0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi > > I was wondering if you could tell me if there is a way to get the number = > of lines of a piece of text, with no other output. What I mean by this = > is that if you use cat -n file1, you get the number of lines but you = > also get the text. > > Thanx > Gavin > > ------=_NextPart_000_0005_01C15ED8.FC7111E0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > http-equiv=3DContent-Type> > > > > >
Hi
>
 
>
I was wondering if you could tell me = > if there is=20 > a way to get the number of lines of a piece of text, with no other = > output. =20 > What I mean by this is that if you use cat -n file1, you get the number = > of lines=20 > but you also get the text.
>
 
>
Thanx
>
Gavin
> > ------=_NextPart_000_0005_01C15ED8.FC7111E0-- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > _ _ (_)-(_) (o o) ooO--(_)--Ooo- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message