RE: Scripting Help (was Qmail Toaster Help / Perl Help)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gilbert T. Gutierrez, Jr.
Date:  
To: 'Main PLUG discussion list'
Subject: RE: Scripting Help (was Qmail Toaster Help / Perl Help)
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:
[mailto:plug-discuss-bounces@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 (/\@/||<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 -
> 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 - 
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 ]

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