Re: regex help

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin
Date:  
To: PLUG-DISCUSS
Subject: Re: regex help

On 6/5/06 4:14 PM, "Randy Melder" <> wrote:
> Anybody have a similar script already made in bash or perl?


Whoa, my mailer got away from me on that last reply. Let's try this
again...

Randy,
This should do the trick:
grep \< oldfile.txt | awk -F "[<>]" '{print $2}' | tee newfile.txt

You can also remove dupes using the `uniq` cmd:
grep \< oldfile.txt | awk -F "[<>]" '{print $2}' | uniq | tee newfile.txt


...Kevin

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss