Created
August 6, 2019 03:45
-
-
Save 2KAbhishek/55a58938065e20202df906cf4a2ca20b to your computer and use it in GitHub Desktop.
Remove duplicate lines from file
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
| #Remove duplicate lines | |
| awk '!visited[$0]++' old_file > new_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment