Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 16:28:29 +1200
From:      Jonathan Chen <jonc@pinnacle.co.nz>
To:        Brandon Lockhart <brandon@engulf.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Getting the users out of /etc/passwd
Message-ID:  <Pine.SGI.4.02.9807291627440.17021-100000@tui.pinnacle.co.nz>
In-Reply-To: <Pine.BSF.3.96.980728210752.11107A-100000@engulf.net>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.02.9807291627440.17021-100000>