i have this file:
Tue Nov 11 10:32:10 2014 172.18.0.240 csotelo tty1 172.18.1.131 stop task_id=88 timezone=UTC service=shell priv-lvl=15 cmd=configure terminal <cr>
I used that command:
sed -e 's/\s\+/,/g' input.txt > output.txt
result from output.txt:
Tue,Nov,11,10:32:10,2014,172.18.0.240,csotelo,tty1,172.18.1.131,stop,task_id=88,timezone=UTC,service=shell,priv-lvl=15,cmd=configure,terminal,<cr>
Desired Output:
Tue Nov 11 10:32:10 2014,172.18.0.240,csotelo,tty1,172.18.1.131,stop,task_id=88,timezone=UTC,service=shell,priv-lvl=15,cmd=configure terminal <cr>
Can anyone please help me?