how to extract lines from a file using their linenumber on unix
- by monkeyking
Using sed or similar how would you extract lines from a file.
Like if i wanted lines 1,5,1010,20503 from a file.
How would you get these 4 lines.
What if I have a fairly large number of lines I need to extract.
If I had a file with 100 lines each representing a linenr that I wanted to extract from another file.
How would you do that.
thanks