Quote:
Originally Posted by otheus
How do you know which lines you want and which you don't?
Let's say you want 3 lines, skip 3 lines, etc. Here's just one way (using GNU awk):
Code:
awk '(int((FNR-1)/ 3))%2 == 0' filename
|
Thx otheus, to answer your question, I am using `grep "^first"`, when I found it I would continue and grep for the "^second" word and so on.