sh -version
GNU sh, version 1.14.7(1)
cat file:
21/Oct/2013:21:29:29 +0530 10.104.x.x www.google.co.in http://www.google.co.in/ads/user-lists/998935479/?
I have a file with above pattern
grep -i http file | awk -F " " '{print $1","$3","$4","$5}' > file2
with above command the output is below
21/Oct/2013:21:29:29,10.104.x.x,www.google.co.in,http://www.google.co.in/ads/user-lists/998935479/?
but I want output like below
21/Oct/2013,21:29:29,10.104.x.x,www.google.co.in,http://www.google.co.in/ads/user-lists/998935479/?
I want to split date and time in sap-rate values. please help me.
2013? Took me a while to find that...