From owner-freebsd-questions Sun Oct 14 19:47: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id F0C4C37B401; Sun, 14 Oct 2001 19:46:55 -0700 (PDT) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.6/8.11.6) with ESMTP id f9F2l3R44114; Sun, 14 Oct 2001 22:47:03 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Sun, 14 Oct 2001 22:47:02 -0400 (EDT) From: Joe Clarke To: Greg Lehey Cc: Scott Gerhardt , FreeBSD Subject: Re: "nl" command In-Reply-To: <20011015114852.F69347@wantadilla.lemis.com> Message-ID: <20011014224526.M32964-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Mon, 15 Oct 2001, Greg Lehey wrote: > On Sunday, 14 October 2001 at 20:18:52 -0600, Scott Gerhardt wrote: > > I'm new to FreeBSD but not new to Linux/UNIX so bear with me. > > I tried using "nl" to number lines in standard out put and I got this: > > > > 102 scott@blue: /home/scott > ls -al | ln > > usage: ln [-fhinsv] file1 file2 > > ln [-fhinsv] file ... directory > > link file1 file2 > > This looks to me like you're trying to use ln (make a link), not nl. > > > My question is: what is the "nl" command under FreeBSD used for? > > It isn't. > > > I guess "cat -n" would give the results I'm looking for > > Yes, that's correct. They're identical to the output of nl. > > > but what happend to nl (number lines)? > > FreeBSD doesn't have an nl(1) command. It's part of the GNU text > utilities package. It's in the Ports Collection, > /usr/ports/textproc/textutils if you want it. It installs as > /usr/local/bin/gnl. FYI, FreeBSD does have nl as of 4.4-stable. Joe > > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message