From owner-freebsd-questions Tue Jul 28 18:05:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA01896 for freebsd-questions-outgoing; Tue, 28 Jul 1998 18:05:57 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from engulf.net (engulf.com [207.96.124.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01829 for ; Tue, 28 Jul 1998 18:05:40 -0700 (PDT) (envelope-from brandon@engulf.net) Received: from localhost (brandon@localhost) by engulf.net (8.8.8/8.8.8) with SMTP id VAA11185 for ; Tue, 28 Jul 1998 21:09:08 -0400 (EDT) Date: Tue, 28 Jul 1998 21:09:08 -0400 (EDT) From: Brandon Lockhart To: questions@FreeBSD.ORG Subject: Getting the users out of /etc/passwd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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