Last active
May 29, 2019 12:12
-
-
Save alrnz/ab5ebef454daa88e38b3790c5d995b6f to your computer and use it in GitHub Desktop.
[remove duplicate lines] remove duplicate lines from files keeping the original order #Shell
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
# [remove duplicate lines] remove duplicate lines from files keeping the original order #Shell | |
# From: https://iridakos.com/how-to/2019/05/16/remove-duplicate-lines-preserving-order-linux.html | |
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