I am a beginner with gawk. I am having a rough time with this can you help me. I can get certain fields but always end up with the header and all the other data and empty lines.
Sample
11
1234
---------------------------------------------
some.| some |some | some. |some
------------------------------------------------
1| thing1|thing2| thing3|thing4 |
2| thing1|thing2| thing3|thing4 |
3| thing1|thing2| thing3|thing4 |
4| thing1|thing2| thing3|thing4 |
344
5632
---------------------------------------------
OTher.| some |some | some. |some
------------------------------------------------
1| Filed1|Filed2| Filed3|Filed4 |
2| Filed1|Filed2| Filed3|Filed4 |
3| Filed1|Filed2| Filed3|Filed4 |
4| Filed1|Filed2| Filed3|Filed4 |
Would like
thing1 thing3
Filed1 Filed3
but with the option to add other fields etc.
Many Thanks
Sample
11
1234
---------------------------------------------
some.| some |some | some. |some
------------------------------------------------
1| thing1|thing2| thing3|thing4 |
2| thing1|thing2| thing3|thing4 |
3| thing1|thing2| thing3|thing4 |
4| thing1|thing2| thing3|thing4 |
344
5632
---------------------------------------------
OTher.| some |some | some. |some
------------------------------------------------
1| Filed1|Filed2| Filed3|Filed4 |
2| Filed1|Filed2| Filed3|Filed4 |
3| Filed1|Filed2| Filed3|Filed4 |
4| Filed1|Filed2| Filed3|Filed4 |
Would like
thing1 thing3
Filed1 Filed3
but with the option to add other fields etc.
Many Thanks