Re: Finding matches and use of __END__ in a one-liner

2005-08-18 Thread John W. Krahn
KEVIN ZEMBOWER wrote: > John, thank you so much for both your suggestions. Even though Manav's > suggestions > work, I learned a little more perl looking up the parts I didn't understand > in your > suggestions. With just a slight modification, both of these worked: > > perl -l -0777ne'print /L:

Re: Finding matches and use of __END__ in a one-liner

2005-08-18 Thread KEVIN ZEMBOWER
John, thank you so much for both your suggestions. Even though Manav's suggestions work, I learned a little more perl looking up the parts I didn't understand in your suggestions. With just a slight modification, both of these worked: perl -l -0777ne'print /L:(.+)\s/, q/@/, /H:(.+)\s/' `find -n

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread John W. Krahn
John W. Krahn wrote: > KEVIN ZEMBOWER wrote: >>I have a series of EZMLM configuration files in the ~alias directory that >>look like this: >>main:/var/qmail/alias# cat cire/config >>F:-aBCdEFGHiJKlmnOpQrStuVWXYZ >>X: >>D:/var/qmail/alias/cire >>T:/var/qmail/alias/.qmail-cire >>L:cire >>H:infofor

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread John W. Krahn
KEVIN ZEMBOWER wrote: > I have a series of EZMLM configuration files in the ~alias directory that > look like this: > main:/var/qmail/alias# cat cire/config > F:-aBCdEFGHiJKlmnOpQrStuVWXYZ > X: > D:/var/qmail/alias/cire > T:/var/qmail/alias/.qmail-cire > L:cire > H:infoforhealthx.org > C: > 0: >

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread KEVIN ZEMBOWER
in >>> Manav Mathur <[EMAIL PROTECTED]> 08/17/05 05:08PM >>> - Original Message - From: "KEVIN ZEMBOWER" <[EMAIL PROTECTED]> To: Sent: Thursday, August 18, 2005 1:06 AM Subject: Finding matches and use of __END__ in a one-liner I have a series of

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread Manav Mathur
- Original Message - From: "KEVIN ZEMBOWER" <[EMAIL PROTECTED]> To: Sent: Thursday, August 18, 2005 1:06 AM Subject: Finding matches and use of __END__ in a one-liner I have a series of EZMLM configuration files in the ~alias directory that look like this: main:/var/

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread KEVIN ZEMBOWER
Manav, thanks for your suggestion. Your suggestion came so close to solving my problem: main:/var/qmail/alias# for x in `find -name config`; do { perl -ne "($name)=/L:(.*)$/; ($add)=/H:(.*)$/; END { print [EMAIL PROTECTED]; }" $x; } done ARRAY(0x8160124)ARRAY(0x8160124)ARRAY(0x8160124)ARRAY(0x81

Re: Finding matches and use of __END__ in a one-liner

2005-08-17 Thread Manav Mathur
>I have a series of EZMLM configuration files in the ~alias directory that look like this: >main:/var/qmail/alias# cat cire/config >F:-aBCdEFGHiJKlmnOpQrStuVWXYZ >X: >D:/var/qmail/alias/cire >T:/var/qmail/alias/.qmail-cire >L:cire >H:infoforhealthx.org main:/var/qmail/alias# >I want to find the

Finding matches and use of __END__ in a one-liner

2005-08-17 Thread KEVIN ZEMBOWER
I have a series of EZMLM configuration files in the ~alias directory that look like this: main:/var/qmail/alias# cat cire/config F:-aBCdEFGHiJKlmnOpQrStuVWXYZ X: D:/var/qmail/alias/cire T:/var/qmail/alias/.qmail-cire L:cire H:infoforhealthx.org C: 0: 3: 4: 5: 6: 7: 8: 9: main:/var/qmail/alias#