A very rudimentary filter to only print the first occurrence of a line in an output stream would be piping it through:
adapted from perlfaq4's How can I remove duplicate elements from a list or array?.perl -nE 'print if not $seen{$_}++'
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Uniq list
by kennethk
in thread Uniq list
by ArifS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |