06-10-2012, 01:07 PM
This is not a scripting forum, but...
uniq's -u option is used when only unique lines are to be kept.
Try:Note that uniq won't work probably if the file wasn't sorted.
So you better stick with:
uniq's -u option is used when only unique lines are to be kept.
Try:
Code:
uniq test.txt
So you better stick with:
Code:
sort -u test.txt