From owner-freebsd-questions Tue Jul 28 21:32:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05746 for freebsd-questions-outgoing; Tue, 28 Jul 1998 21:32:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA05737 for ; Tue, 28 Jul 1998 21:32:07 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id QAA14871; Wed, 29 Jul 1998 16:28:30 +1200 (NZST) (envelope-from jonc@pinnacle.co.nz) Date: Wed, 29 Jul 1998 16:28:29 +1200 From: Jonathan Chen To: Brandon Lockhart cc: questions@FreeBSD.ORG Subject: Re: Getting the users out of /etc/passwd In-Reply-To: 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 On Tue, 28 Jul 1998, Brandon Lockhart wrote: > 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? cut -f1 -d: /etc/passwd | tail -n +14 ------------------------------------------------------------------- Jonathan Chen | When all else fails, RTFM ------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message