From owner-freebsd-questions Mon Oct 8 21:32:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mbox.com.au (smtp2.mbox.com.au [203.103.80.178]) by hub.freebsd.org (Postfix) with ESMTP id 1D5FC37B401 for ; Mon, 8 Oct 2001 21:32:42 -0700 (PDT) Received: from nms2.mbox.com.au (webmail.i7mail.com.au [192.168.20.4]) by smtp2.mbox.com.au (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GKX00GH88IIJX@smtp2.mbox.com.au> for freebsd-questions@FreeBSD.ORG; Tue, 9 Oct 2001 12:30:18 +0800 (WST) Received: from mbox.com.au ([127.0.0.1]) by nms2.mbox.com.au (Netscape Messaging Server 4.15) with ESMTP id GKX8IH02.5KW for ; Tue, 09 Oct 2001 12:30:17 +0800 Date: Tue, 09 Oct 2001 14:30:17 +1000 From: BSD Freak Subject: Outputing a specific line number to standard output To: FreeBSD Questions Message-id: MIME-version: 1.0 X-Mailer: Netscape Webmail Content-type: text/plain; charset=us-ascii Content-language: en Content-disposition: inline Content-transfer-encoding: 7BIT X-Accept-Language: en 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 Hi all, I feel stupid asking this but I have looked in the man page for grep, sort , cat, head and cut and have not been able to find the answer. How do I output to standard output a particular line number in a text file? For example say I want to display line 54 in the file myfile.txt . How do I do this? Thanks in advance..... --------------------------------------------------------------------- mBox is unified messaging and now has the mBeeper! Be the first to trial it. http://www.mbox.com.au/mbeeper To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message