Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 14:42:33 -0400
From:      "Ryan Masse" <rmasse@mastery.ca>
To:        "Philip Hallstrom" <philip@adhesivemedia.com>
Cc:        "FreeBSD-Questions" <freebsd-questions@freebsd.org>
Subject:   Re: OT: awk help
Message-ID:  <016b01c10002$17fd5ee0$3200000a@Intranet>
References:  <20010628110020.T16401-100000@oddjob.adhesivemedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
it didn't dawn on me to use the '&&' =\ anyhow thanks to those that
responded

Ryan


> Try...
>
> awk -F: '$3 >= 1001 && $3 <= 65500 { print $1 }' /etc/passwd
>
> On Thu, 28 Jun 2001, Ryan Masse wrote:
>
> > i'm not to fimiliar with awk but i want to rip through /etc/passwd and
print
> > out to file all users greater than uid 1001 and less than 65500. I've
come
> > up with this so far;
> >
> > awk -F: '$3 > 1001 { print $1 }' /etc/passwd > /var/db/user.db
> >
> > i can't seem to create a statement that will printout both the lbount
and
> > ubound of 1001 and 65500
> >
> > can someone lend me their thinking cap?
> >
> > Ryan
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016b01c10002$17fd5ee0$3200000a>