Skip site navigation (1)Skip section navigation (2)
Date:       Thu, 28 Jun 2001 11:00:19 -0700
From:      ChildsC@bcrail.com
To:        rmasse@mastery.ca, freebsd-questions@FreeBSD.ORG
Subject:   RE: awk help
Message-ID:  <01Jun28.105835pdt.119047@gatekeeper.bcrail.com>

next in thread | raw e-mail | index | archive | help
How about:

awk -F: '$3 > 1001 && $3 < 65500 { print $0 }' /etc/passwd > /var/db/user.db

Chris

-----Original Message-----
From: Ryan Masse [mailto:rmasse@mastery.ca]
Sent: Thursday, June 28, 2001 10:48 AM
To: FreeBSD-Questions
Subject: OT: awk help


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?01Jun28.105835pdt.119047>