in reply to Specifics Items in a Text File

If this is a one time thing, a oneliner might suffice:

perl -F'\*' -lane '$h{$F[1]}++;}{print for keys %h' yourfile.txt

But please be aware of the security implications when using the -n switch.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Specifics Items in a Text File
by flounder99 (Friar) on May 23, 2003 at 18:17 UTC
    This oneliner

    perl -lne 's/.*\*//;print unless $f{$_}++' yourfile.txt

    does the same but also maintains the order.

    --

    flounder