May 5, 2004 #1 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.
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.
May 5, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
May 5, 2004 #3 vgersh99 Programmer Jul 27, 2000 2,146 US what is your criteria for your sample input to you sample output? vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
what is your criteria for your sample input to you sample output? vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+