From owner-freebsd-questions Sat Oct 27 17:42:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id CBBDF37B401 for ; Sat, 27 Oct 2001 17:42:30 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id EF6366A90F; Sun, 28 Oct 2001 11:12:26 +1030 (CST) Date: Sun, 28 Oct 2001 11:12:26 +1030 From: Greg Lehey To: Gavin Mutch Cc: questions@freebsd.org Subject: Re: your mail Message-ID: <20011028111226.A13356@wantadilla.lemis.com> References: <000801c15ec8$5434c860$0101a8c0@family> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000801c15ec8$5434c860$0101a8c0@family>; from gmutch@global.co.za on Sat, Oct 27, 2001 at 11:17:38AM +0200 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF 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 [Format recovered--see http://www.lemis.com/email/email-format.html] Your message was on a single line. On Saturday, 27 October 2001 at 11:17:38 +0200, Gavin Mutch wrote: > 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. wc -l is your friend. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message