To extract a particular line(given by line number) from a file
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
Signature · 2 lines
http://www.fastmail.fm - Accessible with your email software
or over the web