Scripting Help (was Qmail Toaster Help / Perl Help)

Gilbert T. Gutierrez, Jr. plug at phxinternet.net
Mon Dec 18 10:03:51 MST 2006


That was exactly what I was looking for.  I am adapting it into a perl
script I wrote to decode the passwords.

Thanks a lot,
Gilbert

-----Original Message-----
From: plug-discuss-bounces at lists.plug.phoenix.az.us
[mailto:plug-discuss-bounces at lists.plug.phoenix.az.us] On Behalf Of Empty
Sent: Monday, December 18, 2006 9:59 AM
To: Main PLUG discussion list
Subject: Re: Scripting Help (was Qmail Toaster Help / Perl Help)

If you have a single domain, you could do:

generate_that_list | perl -ne 'if (/\@domain.tld/||/@domain2.tld/||<etc
etc etc>){ s/\n/,/; s/\@/,/ }; print ' > foo.csv

~Ben

Gilbert T. Gutierrez, Jr. wrote:
> Now I am able to generate a list of all the email addresses on my server.
> The list is in the format...
> 
> Email address1
> Password1
> Email address2
> Password2
> ...
> 
> I know how to replace the '@' character with a ',' character using tr.
What
> I now need to move the password up to the same line as the email address
and
> insert a comma between the email address and the password.  All email
> addresses end with a ".net, .com, .org, or a .us".  I have played with sed
> and tr and have not been able to figure it all out (I have never used sed
> and am not a shell scripting genius by any means).
> 
> Does anyone have any pointers on how to do this either using a shell
script
> or a perl script?
> 
> Any help would be appreciated.
> 
> Thank you,
> Gilbert
> 
> ---
> [ This E-mail was scanned for viruses by Phoenix Internet ]
> [ Phoenix Internet http://www.phoenixinternet.net ]
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 

-- 
---
"Confession only helps if you actually feel bad for your actions.
For you, it would just be a really long boast."
	-Tara
http://www.emptiedout.com
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---
[ This E-mail was scanned for viruses by Phoenix Internet ]
[ Phoenix Internet http://www.phoenixinternet.net ]


---
[ This E-mail was scanned for viruses by Phoenix Internet ]
[ Phoenix Internet http://www.phoenixinternet.net ]



More information about the PLUG-discuss mailing list