uniqq

uniqq
#!/bin/bash
 
# "sort | uniq" replacement.
# removes duplicate lines from STDIN, but without loosing the origin sort order
 
# also possible via alias
# alias uniqq='awk '\''!x[$0]++'\'''
 
cat | awk '!x[$0]++'