Advertisement
ArthurZ

Using awk to print duplicate lines of a file only once

Apr 28th, 2018
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.03 KB | None | 0 0
  1. awk 'seen[$0]++ == 1' <filename>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement