Created
May 18, 2018 19:10
-
-
Save arodbits/fe90d5a71a0c63d0022416526121196d to your computer and use it in GitHub Desktop.
remove duplicates with awk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ awk '!x[$0]++' | |
#which is a shorthand for: | |
$ awk ' !seen[$0] { print $0 } 1 { seen[$0]++ }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment