Quantcast
Channel: sort, uniq, cut keeping additional fields - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by heemayl for sort, uniq, cut keeping additional fields

Just awk:awk '{$1=""; a[$0]++} END{for (i in a) if (a[i]>=100) print a[i]i}' file.txtCreating array a with keys as fields making the first field null, and the values as count of the fields (keys)In...

View Article



sort, uniq, cut keeping additional fields

I have a text file with three columns/fields: time, ip source address, and type (tcp, udp, icmp). Please see sample at the bottom. I had to sort by IPsource address to determine those addresses that...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images