From owner-freebsd-questions Sun Oct 14 19:19: 5 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 9E03937B408 for ; Sun, 14 Oct 2001 19:18:55 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 031256AB08; Mon, 15 Oct 2001 11:48:53 +0930 (CST) Date: Mon, 15 Oct 2001 11:48:52 +0930 From: Greg Lehey To: Scott Gerhardt Cc: FreeBSD Subject: Re: "nl" command Message-ID: <20011015114852.F69347@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from scott@gerhardt-it.com on Sun, Oct 14, 2001 at 08:18:52PM -0600 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 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. 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