I have a varable(var1) in a AWK script that contain data in the following format
[timestamp] [priority] - [log message]
I need to extract timestamp,priority and log message.I can extract these by using split function but i don't want to use it, since i want to extract it in one go. I have some difficulties in doing it using Regular expression using a single statement. Can anybody help me on this