Skip to content

Instantly share code, notes, and snippets.

@idrisr
Created October 28, 2011 16:31
Show Gist options
  • Save idrisr/1322694 to your computer and use it in GitHub Desktop.
Save idrisr/1322694 to your computer and use it in GitHub Desktop.
Remove duplicates in line without sorting
awk ' !x[$0]++' old_file > new_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment