On Wed, Oct 29, 2008 at 05:38:35PM -0200, Gustav Meirinho wrote:

>        Try this:
> 
>        # perl -e 'print getpwnam "username",$/'

A slightly more clean Perl "getent passwd" clone:

    perl -le 'for (@ARGV) { print join(":", getpwnam($_)) }' "username" ...

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to