Data in the log file goes like this
username - yyyy-mm-dd, HH:MM:SS
Now how to seperate username, date and time?
I tried using.
while IFS=" - |, " read G1 G2 G3
But this considers the hyphen between the date.. any idea?
EDIT: I actually found a method .....
I used
while IFS="-""," read G1 G2 G3 G4
And G1 was the username , G2 was - G3 was date and G4 was the time..
I couldn't understand how this works.. but it worked
Thanks