Date: Tue, 28 Jul 1998 21:09:08 -0400 (EDT) From: Brandon Lockhart <brandon@engulf.net> To: questions@FreeBSD.ORG Subject: Getting the users out of /etc/passwd Message-ID: <Pine.BSF.3.96.980728210752.11107A-100000@engulf.net>
next in thread | raw e-mail | index | archive | help
I want to make a cron script to take all the users out of the password
file, (only the first field), and ignore the first 13. I can take them
out by either using AWK or CUT, for example.
cut -f1 -d: /etc/passwd
-or-
awk -F: '{print $1}'
but, how do I ignore the first 13 lines of output?
,-----------------------------------------------------------------.
| //// "Anything I say represents only my opinion." |
| (o o) / |
| ,---ooO--(_)--Ooo---------------------------------------------, |
| | BRANDON LOCKHART | |
| `-------------------------------------------------------------' |
| brandon.lockhart@usinternetworking.com brandon@engulf.net |
| Work: (410) 897-4551 Pager: (888) xxx-xxxx |
`-----------------------------------------------------------------'
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?Pine.BSF.3.96.980728210752.11107A-100000>
