LeHibou
Technical User
- Jun 12, 2013
- 3
Hello,
I currently have this script :
I simplified it since it would normally be :
I would like to be able to convert an ip (the $4 field) 192.168.1.1 to its decimal counterpart.
So, i shoud do something around substr($4,2) since it it the column i am interested in.
Could someone tell me how to do so ?
Thanks,
I currently have this script :
Code:
awk 'BEGIN{OFS=",";} {print substr($4,2)}' my.log > log.txt
I simplified it since it would normally be :
Code:
awk 'BEGIN{OFS=",";} {print substr($4,2),$1,$6,$8}' my.log > log.txt
I would like to be able to convert an ip (the $4 field) 192.168.1.1 to its decimal counterpart.
So, i shoud do something around substr($4,2) since it it the column i am interested in.
Could someone tell me how to do so ?
Thanks,