how can I split up this string

Posted by lacrosse1991 on Stack Overflow See other posts from Stack Overflow or by lacrosse1991
Published on 2012-09-09T21:30:23Z Indexed on 2012/09/09 21:38 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

I am currently trying to sanitize some log files so they are in an easier format to read, and have been trying to use the gnu cut command, which works fairly well, although I cannot really think of a good way to remove the [INFO] part of the string

logs/logs/server_1283258036.log:2010-08-31 23:06:51 [INFO] <NateMar> where?!
logs/logs/server_1281904775.log:2010-08-15 22:59:53 [INFO] <BoonTheMoon> §b<BoonTheMoon>§ohhhhhh

I would ultimately want to get the strings down to something that resembles the following

2010-08-31 23:06:51 <NateMar> where?!
2010-08-15 22:59:53 <BoonTheMoon> ohhhhhh

how should I go about doing this? Have thought about using awk, although Im having a difficult time getting a grip on how that would work, so not sure how to set up something to do that, any help would be greatly appreciated, thanks!

© Stack Overflow or respective owner

Related posts about bash

Related posts about awk