Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting

Status
Not open for further replies.

hill007

Technical User
Mar 9, 2004
60
US
I have a large dataset in this format:
A B C D E
F G H I J
K L M N O
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15

I want my final result in the format shown below:

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
How do I go about doing this?

Thanks always.

 
Get rid of the first 3 lines:
awk 'NR>3' /path/to/inputfile
Get rid of non numeric lines:
awk '/[\t 0-9]+/' /path/to/inputfile

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
what is your criteria for your sample input to you sample output?

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top