From owner-freebsd-questions Sun Oct 14 21:37:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.121.50]) by hub.freebsd.org (Postfix) with ESMTP id 5D92837B403 for ; Sun, 14 Oct 2001 21:37:13 -0700 (PDT) Received: from sdn-ar-004dcwashp135.dialsprint.net ([206.133.21.199] helo=moo.holy.cow) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 15szUt-00052m-00; Sun, 14 Oct 2001 21:37:08 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id 1DD5C50CF4; Mon, 15 Oct 2001 00:10:20 -0400 (EDT) Date: Mon, 15 Oct 2001 00:10:19 -0400 From: parv To: Scott Gerhardt Cc: FreeBSD Subject: Re: "nl" command Message-ID: <20011015001019.A1780@moo.holy.cow> Mail-Followup-To: Scott Gerhardt , FreeBSD References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from scott@gerhardt-it.com on Sun, Oct 14, 2001 at 08:18:52PM -0600 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 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