shell script question: removing a line according to a duplicate "field"
I am sorting my web logs with a shell script (they're not apache :( )
I want to only track unique visitors. So I have sorted my logs according to the first field, which is IP address.
Great. Now I want to throw out "duplicate" users. I need advice on how to do this. I know uniq will do this if *the whole line is the same.* But i want to throw a line out only if the first field/ column is the same. The rest of the line can be "unique."
Try this one using awk:
|All times are GMT -5. The time now is 05:27 PM.|