i have huge data list
My data looks like this
"[01/Dec/2011:20:53:04 +0900] ","COMZ","90.663.65.61","21.123.31.100","250","CONNECT","t.ierz.er:443","13127","836"
"[01/Dec/2011:22:20:01 +0900] ","COMZ","90.663.65.61","21.123.31.100","250","CONNECT","t.ierz.er:443","13127","836"
"[02/Dec/2011:24:33:04 +0900] ","COMZ","20.663.65.61","2.123.91.100","220","CONNECT","t.ierz.er:443","13127","836"
How can I get a data format like unique value data or IP address
01/DEC/2011 90.663.65.61 21.123.31.100
Because I have get the same value and cant get the unique value
[01 / Dec / 2011: 20: 53: 04 0900] 90.663.65.61 21.123.31.100
[01 / Dec / 2011: 20: 53: 04 0900] 90.663.65.61 21.123.31.100
code:
file.csv | awk -F\" '{print $2,$6,$8}' | sort | uniq -c | sort -n
uniq -u
? Also, it's not clear from your question what you're trying to accomplish. So you want to see unique IPs and unique dates? – Panki Jan 23 '19 at 07:28