Friday, February 6, 2009

Removing duplicate lines from a file using awk

awk '!($0 in a) {a[$0];print}' infile > outfile

No comments:

Post a Comment