On Thu, Sep 14, 2000 at 04:53:54PM -0400, Garrett Wollman wrote:
> (Probably easier, actually, but I don't know AWK well enough to
> actually implement it.)

awk -F: '$0 ~/^(#|$)/ {next}
    {print "#define\tUID_" toupper($1) "\t" $3}' ${PASSWD} > ${.TARGET}

-- 
Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                          _/  _/   _/                -- D. J. Bernstein
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to