Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Grep or distinct to filter blank lines' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Grep or distinct to filter blank lines
Authored by: fracai on Jul 19, '12 07:10:33PM
uniq requires the duplicate lines to be consecutive. Otherwise they aren't removed. Another option is sort -u, but that will reorder the list. You could get complicated by printing the date column as well, then radix sort, uniquely on the URL column, and then non-uniquely by the date column.
---
i am jack's amusing sig file


[ Reply to This | # ]