Re: regex help

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Kevin
Datum:  
To: PLUG-DISCUSS
Betreff: 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