Tom Lieber's Microblog

Jul 2, 2021

New favorite awk one-liner: !x[$0]++

Prints only lines that haven’t been seen before in the input.

awk is such an elegant cascade of features!