Start Date/Time End Date/Time from Prob_Dura
----------------- ----------------- ----- ------
20090525 23:58:59 20090526 00:00:00 machine1 000051
20090525 23:58:09 20090526 00:00:11 machine22 000150
1. remove the first two lines.
awk 'FNR>2' a.txt
2. remove the columun for from
cut -f1,2,3,4,6 -d' ' a.txt
but i fail to do that, becuase you can see the line no.2 machines22 + one space + 000150; but line no.1 is two spaces between the "from" and "Prob_Dura". So the -f6 is the empty character.
i stuck here.
Please advice, any other good way can select what i want, or solve the more than one space issue.
Thanks