http://qs321.pair.com?node_id=660233


in reply to Re: Remove Duplicates!! Please Help
in thread Remove Duplicates!! Please Help

While i love uniq, it's not a solution here. OP said "I want to remove duplicate entries for one single instance of COMPUTER column." Not eliminate duplicate lines, which your uniq examples doe.

My first action after reading OP was to man uniq -- there's options to "avoid comparing the first N fields" and "avoid comparing the first N characters", but unfortunately neither of those work for comparing just the first column (of a tab-delim'd file).

Replies are listed 'Best First'.
Re^3: Remove Duplicates!! Please Help
by jbert (Priest) on Jan 03, 2008 at 16:00 UTC
    Fair point, sorry. I misread the sample data and gave an alternative to the (also incorrect) perl version above. Thanks for the catch.