Extract log file

Posted by k38 on Stack Overflow See other posts from Stack Overflow or by k38
Published on 2010-06-18T04:55:00Z Indexed on 2010/06/18 5:03 UTC
Read the original article Hit count: 297

Filed under:
|
|

Hi,

xxxxxxxxmessageyyyyyyymessagexxxxxxxxxx

xxxxxxxxmessagezzzzzzzmessagexxxxxxxxxx

xxxxxxxxmessageaaaaaaamessagexxxxxxxxxx

xxxxxxxxmessageyyyyyyymessagexxxxxxxxxx

The above is my log file I need to extract the phrase which is inside the message tag and I need to save the distinct messages in a file in the above example I need to save zzzzzzz and aaaaaaa to a file.

What are the unix commands I need to use.

© Stack Overflow or respective owner

Related posts about unix

Related posts about scripting