Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Created August 27, 2018 08:48
Show Gist options
  • Save ChristopherA/79f0f1d529c17a7d20ced37736d3a466 to your computer and use it in GitHub Desktop.
Save ChristopherA/79f0f1d529c17a7d20ced37736d3a466 to your computer and use it in GitHub Desktop.
Delete duplicate lines
awk '! seen[$0]++'
# Efficiently prints lines from a file without duplicates, without sorting (unlike `sort -u`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment