Re: awk problem

2010-08-13 Thread Len Conrad
-- Original Message -- From: Mark Tinguely Date: Fri, 13 Aug 2010 11:14:03 -0500 >Len Conrad wrote: >> I readfile or pipe this text, in any line order: >> >> rm90.steampick.info >> fgce172.lanejive.info >> smailer1.service.govdelivery.com >> fl49.orangetal

Re: awk problem

2010-08-13 Thread Mark Tinguely
Len Conrad wrote: I readfile or pipe this text, in any line order: rm90.steampick.info fgce172.lanejive.info smailer1.service.govdelivery.com fl49.orangetalon.info pollux.carespecial.info into a program to remove subdomains down to domain.tld : awk 'FS="." { print $(NF-1)"."$NF }' and get the

Re: awk problem

2010-08-13 Thread Anonymous
mer...@stonehenge.com (Randal L. Schwartz) writes: > Len> awk 'FS="." { print $(NF-1)"."$NF }' > > Len> rm90.steampick.info.rm90.steampick.info > Len> lanejive.info > Len> govdelivery.com > Len> orangetalon.info > Len> carespecial.info > > Yes, that would be the expected behavior. > > You need to

Re: awk problem

2010-08-13 Thread Len Conrad
-- Original Message -- From: Anonymous Date: Fri, 13 Aug 2010 20:13:20 +0400 >"Len Conrad" writes: > >> awk 'FS="." { print $(NF-1)"."$NF }' >> >> rm90.steampick.info.rm90.steampick.info >> lanejive.info >> govdelivery.com >> orangetalon.info >> carespeci

Re: awk problem

2010-08-13 Thread Randal L. Schwartz
> "Len" == Len Conrad writes: Len> I readfile or pipe this text, in any line order: Len> rm90.steampick.info Len> fgce172.lanejive.info Len> smailer1.service.govdelivery.com Len> fl49.orangetalon.info Len> pollux.carespecial.info Len> into a program to remove subdomains down to domain.tld :

Re: awk problem

2010-08-13 Thread Anonymous
"Len Conrad" writes: > awk 'FS="." { print $(NF-1)"."$NF }' > > rm90.steampick.info.rm90.steampick.info > lanejive.info > govdelivery.com > orangetalon.info > carespecial.info Hmm, I can't reproduce it on /head. What FreeBSD version you're using? Can you try with lang/nawk port? nawk is from the

awk problem

2010-08-13 Thread Len Conrad
I readfile or pipe this text, in any line order: rm90.steampick.info fgce172.lanejive.info smailer1.service.govdelivery.com fl49.orangetalon.info pollux.carespecial.info into a program to remove subdomains down to domain.tld : awk 'FS="." { print $(NF-1)"."$NF }' and get the first line doubled