awk

# remove duplicate lines without sorting (will keep first instance)
awk '!a[$0]++' file

Leave a Reply

Your email address will not be published. Required fields are marked *