[ Kenneth W. Parker writes: ]
>
> > Now, wouldn't it be possible to write
> > a Perl script that takes fields out of an /etc/passwd file and puts
> > them in exactly the right order to make a Majordomo user list file?
>
> This is NOT a request for someone to write such a script.
> (Though with the length of time Majordomo's been out there,
> that script has PROBABLY already been done multiple times...)
Shoot, it's just a (longish) one-liner:
ypcat passwd | perl -naF/:/ -e 'print "$F[0]\@where.ever.com ($F[4])\n"
if $F[2] > 100 && $F[2] < 32767 && length($F[1]) == 13;' >...
--
Dave Wolfe
References:
|
|