1.

Solve : Substring Unix Command : Help?

Answer»

Hi,

To REMOVE the DATE and TIME from the below data which is in a FILE abc.txt

29 Jul 2009 04:36:53,956 [ajp-0.0.0.0-8310-140] ERROR 1
29 Jul 2009 04:36:58,335 [ajp-0.0.0.0-8310-239] ERROR 2
29 Jul 2009 05:37:24,746 [ajp-0.0.0.0-8310-125] ERROR 3

I want the output as

ERROR 1
ERROR 2
ERROR 3


As, In the above data time have different seconds . I am not getting how to do that .

Kindly let me know how to do the same.Code: [Select]awk '{print $NF}' file

Next STOP, try to pick up tutorials on unix scripting.......



Discussion

No Comment Found