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: Empty
Date:  
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