Skip to content

Instantly share code, notes, and snippets.

@2KAbhishek
Created August 6, 2019 03:45
Show Gist options
  • Select an option

  • Save 2KAbhishek/55a58938065e20202df906cf4a2ca20b to your computer and use it in GitHub Desktop.

Select an option

Save 2KAbhishek/55a58938065e20202df906cf4a2ca20b to your computer and use it in GitHub Desktop.
Remove duplicate lines from file
#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