From owner-cvs-all Fri May 4 19:13:38 2001 Delivered-To: cvs-all@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id B810C37B423; Fri, 4 May 2001 19:13:28 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id TAA09864; Fri, 4 May 2001 19:13:25 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200105050213.TAA09864@gndrsh.dnsmgr.net> Subject: Re: cvs commit: src/usr.bin Makefile src/usr.bin/nl Makefile nl. In-Reply-To: from John Baldwin at "May 4, 2001 02:08:24 pm" To: jhb@FreeBSD.org (John Baldwin) Date: Fri, 4 May 2001 19:13:24 -0700 (PDT) Cc: brian@Awfulhak.org (Brian Somers), cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, brian@FreeBSD.org (Brian Somers), kris@obsecurity.org (Kris Kennaway) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Or pr -n > > On 04-May-01 Brian Somers wrote: > >> On Fri, May 04, 2001 at 10:25:24AM -0700, Brian Somers wrote: > >> > brian 2001/05/04 10:25:24 PDT > >> >=20 > >> > Modified files: > >> > usr.bin Makefile=20 > >> > Added files: > >> > usr.bin/nl Makefile nl.1 nl.c=20 > >> > Log: > >> > Add nl(1) > >> > =20 > >> > PR: 27078 > >> > Obtained from: NetBSD > >> > >> What does this do? > > > > NAME > > nl - line numbering filter > > > > SYNOPSIS > > [-p] [-b type] [-d delim] [-f type] [-h type] [-i incr] [-l num] > > [-n format] [-s sep] [-v startnum] [-w width] [file] > > > > It essentially stuffs numbers in front of lines. > > About like "awk '{ printf "%d:%s\n", NR, $0 }'" then? > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message