From owner-freebsd-questions Sun Oct 14 19:13:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pop3.telenet-ops.be (pop3.telenet-ops.be [195.130.132.40]) by hub.freebsd.org (Postfix) with ESMTP id 2F2B237B408 for ; Sun, 14 Oct 2001 19:13:25 -0700 (PDT) Received: from fortuna.paeps.cx (D5762326.kabel.telenet.be [213.118.35.38]) by pop3.telenet-ops.be (Postfix) with ESMTP id 175B69BB3E; Mon, 15 Oct 2001 04:13:20 +0200 (CEST) Received: from server (juno.paeps.cx [10.0.0.2]) by fortuna.paeps.cx (Postfix) with ESMTP id 96B5D1A92; Mon, 15 Oct 2001 04:13:19 +0200 (CEST) From: "Philip Paeps" To: "'Scott Gerhardt'" , "'FreeBSD'" Subject: RE: "nl" command Date: Mon, 15 Oct 2001 04:13:14 +0200 Message-ID: <01be01c1551e$f28fe160$0200000a@paeps.cx> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > 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're piping to 'ln' here ... ln is used for linking files. > 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)? # -- snip man page -- # To count the number of lines, try wc(1) instead. This will count the number of lines in the output of ls -al: % /home/scott > ls -al | wc -l - Philip - -- Philip Paeps philip@paeps.cx http://www.vitaya.tv -----BEGIN PGP SIGNATURE----- Version: PGP 7.0.1 iQA/AwUBO8pGOr9L0OYEnbh5EQKQ5wCg7sFnyX55Xo0KPSL+7yaxK8OYFeoAnRSh +Xq59nthrpjNZf5DM157rjSo =FT1s -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message