Last active
May 20, 2019 14:10
-
-
Save indygwyn/39ff19cedc4b3598d2fa67d38486c2bc to your computer and use it in GitHub Desktop.
remove duplicate lines preserve file order #bash #awk
This file contains hidden or 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 '!visited[$0]++' your_file > deduplicated_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment