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 Articlesort, 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
More Pages to Explore .....