---

Removing duplicate lines with awk ‘!visited[$0]++’ explained

How to remove duplicate lines of a file in Linux without sorting or changing their order (awk one-liner explained).

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis