in reply to Removing repeated words
original attempt below...perl -pale '$_="@{[grep !$s{$_}++, @F]}"'
my %seen; print join(' ', grep !$seen{$_}++, split), "\n" while <STDIN>;
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing repeated words
by Aristotle (Chancellor) on Sep 20, 2002 at 15:08 UTC | |
by blakem (Monsignor) on Sep 20, 2002 at 15:23 UTC |