Skip to content

Instantly share code, notes, and snippets.

@dinks
Created May 29, 2019 13:51
Show Gist options
  • Save dinks/631ef777bdfa7f900a9bcc7c032e310b to your computer and use it in GitHub Desktop.
Save dinks/631ef777bdfa7f900a9bcc7c032e310b to your computer and use it in GitHub Desktop.
Remove duplicates from File preserving order
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