Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Oct 2001 22:47:02 -0400 (EDT)
From:      Joe Clarke <marcus@marcuscom.com>
To:        Greg Lehey <grog@FreeBSD.ORG>
Cc:        Scott Gerhardt <scott@gerhardt-it.com>, FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: "nl" command
Message-ID:  <20011014224526.M32964-100000@shumai.marcuscom.com>
In-Reply-To: <20011015114852.F69347@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011014224526.M32964-100000>