From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrown105@speedymail.org Subject: Re: To extract a particular line(given by line number) from a file Date: Fri, 28 Mar 2003 14:20:09 -0500 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030328192009.A63D1507BE@smtp.us2.messagingengine.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Try looking at 'man head' or 'man tail' Or ... why not just write a small Python or Perl app to do it for you? jbrown You said: Hi Friends, I am running RedHat Linux 8.0. I want to do the following . I have a file with several lines of data in it. I want to extract a line I want from the file and display the whole line of data. 'grep' searches only for patterns,as I believe. I don't want to search for patterns. I just directly want to extract the data by line numbers.For example, I want to get the data in line number 5. How can I do this? Is there any command to do this? Please help me. I hope I am clear. Thanks, Pradeep -- http://www.fastmail.fm - Accessible with your email software or over the web