linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jbrown105@speedymail.org
To: linux-admin@vger.kernel.org
Subject: Re: To extract a particular line(given by line number)  from a file
Date: Fri, 28 Mar 2003 14:20:09 -0500	[thread overview]
Message-ID: <20030328192009.A63D1507BE@smtp.us2.messagingengine.com> (raw)

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

             reply	other threads:[~2003-03-28 19:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 19:20 jbrown105 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-28 18:35 To extract a particular line(given by line number) from a file Sadanapalli, Pradeep Kumar (MED, TCS)
2003-03-28 19:15 ` Tim Walberg
2003-03-28 19:26 ` Ashish V. Orpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030328192009.A63D1507BE@smtp.us2.messagingengine.com \
    --to=jbrown105@speedymail.org \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).