Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Oct 2001 22:18:19 -0400 (EDT)
From:      <scanner@jurai.net>
To:        Scott Gerhardt <scott@gerhardt-it.com>
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: "nl" command
Message-ID:  <Pine.BSF.4.21.0110142212300.47683-100000@sasami.jurai.net>
In-Reply-To: <KPEMLBLEMPMHGLJOCDEGCEABCKAA.scott@gerhardt-it.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 14 Oct 2001, 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

You typed ln not nl. ln is for making symbolic links.

> My question is: what is the "nl" command under FreeBSD used for? I guess
> "cat -n" would give the results I'm looking for but what happend to nl
> (number lines)?

I dont know what "nl" is but I believe you want "wc" which is part of the
POSIX.2 standard. Man wc. 

=============================================================================
-Chris Watson         (816) 464-7780 | Sr. Unix Administrator 
Work:           chris.watson@twa.com | Trans World Airlines, Kansas City, MO
Home:              scanner@jurai.net | http://www.twa.com
=============================================================================
WINDOWS:   All our IP belongs to us.
GNU/LINUX: Touch our IP, and your IP belongs to us.
BSD: 	   Here's our IP, just use it.
=============================================================================
irc.openprojects.net #FreeBSD -Join the revolution!
ICQ: 20016186


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?Pine.BSF.4.21.0110142212300.47683-100000>