wesbatch - more scripts

unique - from a sorted file, print only unique lines. distinct is not very efficient for large datasets so instead sort your file and run it through the much simpler yet efficient unique.py

$cat test 
123 
123 
123 
456 
789 
789 
hi 
hi 
hi 
no 
no 

$unique test 
123 
456 
789 
hi 
no
check out the code here

No comments yet, be the first to add one!
: