Last active
July 5, 2018 20:20
-
-
Save loplex/47528e024f82991dc2012780b85f50ec to your computer and use it in GitHub Desktop.
print duplicated lines only once without need of sorted input
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
#!/bin/sh | |
# print duplicated lines only once without need of sorted input | |
awk '!seen[$0]++' $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment