From owner-freebsd-questions Sun Oct 14 22:49:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from indigo.quadrant.net (indigo.quadrant.net [207.195.92.9]) by hub.freebsd.org (Postfix) with ESMTP id D0A5B37B406 for ; Sun, 14 Oct 2001 22:49:33 -0700 (PDT) Received: from git2000 (h24-71-180-125.ss.shawcable.net [24.71.180.125]) by indigo.quadrant.net (8.9.1/8.9.1) with SMTP id XAA11089; Sun, 14 Oct 2001 23:49:30 -0600 (CST) From: "Scott Gerhardt" To: "parv" Cc: "FreeBSD" Subject: RE: "nl" command Date: Mon, 15 Oct 2001 00:00:01 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20011015001019.A1780@moo.holy.cow> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Nope, not high (wish I was at the time). I did make a typo in my original post and piped "ls -al | ln" (should have been nl). I did not quote the wrong man page though here is the output, just did it again: 1014 scott@blue: /root # man nl curs_outopts(3X) curs_outopts(3X) NAME clearok, idlok, idcok immedok, leaveok, setscrreg, wsetscrreg, scro Why do I get this man page for "man nl"??? > -----Original Message----- > From: parv [mailto:parv_@yahoo.com] > Sent: October 14, 2001 10:10 PM > To: Scott Gerhardt > Cc: FreeBSD > Subject: Re: "nl" command > > > this was, on the fateful occasion around Oct 14 22:18 -0400, > sent by Scott Gerhardt > > > > 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 sure you are not high? you tried 'ln' not 'nl' and quoted > the wrong man page, curs_outopts(3X). > > try again... > > > NL(1) FreeBSD General Commands Manual > NL(1) > > NAME > nl - line numbering filter > > SYNOPSIS > nl [-p] [-b type] [-d delim] [-f type] [-h type] [-i > incr] [-l num] > [-n format] [-s sep] [-v startnum] [-w width] [file] > > DESCRIPTION > The nl utility reads lines from the named file or the > standard input if > the file argument is ommitted, applies a configurable > line numbering fil- > ter operation and writes the result to the standard output. > > The nl utility treats the text it reads in terms of logical pages. > Unless specified otherwise, line numbering is reset at > the start of each > logical page. A logical page consists of a header, a > body and a footer > section; empty sections are valid. Different line > numbering options are > independently available for header, body and footer sections. > ... > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message