From owner-freebsd-questions Sun Oct 14 19: 8:28 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 D729E37B409 for ; Sun, 14 Oct 2001 19:08:23 -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 UAA26788 for ; Sun, 14 Oct 2001 20:08:21 -0600 (CST) From: "Scott Gerhardt" To: "FreeBSD" Subject: "nl" command Date: Sun, 14 Oct 2001 20:18:52 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) 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 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 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)? man nl gives me this (output cut for brevity): curs_outopts(3X) curs_outopts(3X) NAME clearok, idlok, idcok immedok, leaveok, setscrreg, wsetscrreg, scrollok, nl, nonl - curses output options SYNOPSIS #include int clearok(WINDOW *win, bool bf); int idlok(WINDOW *win, bool bf); void idcok(WINDOW *win, bool bf); void immedok(WINDOW *win, bool bf); int leaveok(WINDOW *win, bool bf); int setscrreg(int top, int bot); int wsetscrreg(WINDOW *win, int top, int bot); int scrollok(WINDOW *win, bool bf); int nl(void); int nonl(void); DESCRIPTION These routines set options that change the style of output within curses. All options are initially FALSE, unless otherwise stated. It is not necessary to turn these options off before calling endwin _________________________________ Scott Gerhardt, P.Geo. Gerhardt Information Technologies _________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message