Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 13:47:45 -0400
From:      "Ryan Masse" <rmasse@mastery.ca>
To:        "FreeBSD-Questions" <freebsd-questions@freebsd.org>
Subject:   OT: awk help
Message-ID:  <012b01c0fffa$705995c0$3200000a@Intranet>

next in thread | raw e-mail | index | archive | 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012b01c0fffa$705995c0$3200000a>