From: Devin Mullins Date: 2005-10-06T12:25:40+09:00 Subject: Re: One-liner removing duplicate lines Jeremy Kemper wrote: > On Oct 5, 2005, at 7:11 PM, William James wrote: > >> awk '!a[$0]++' infile >outfile > > My head a splode. Old school. Seriously. Awe. Here's different way. Not a golf-winner, but maybe more Rubyish? ruby -e"o=nil; ARGF.each {|l| puts l or o=l unless o==l}" infile > outfile Devin Or disgust. Not sure.