Newsgroups: comp.unix.questions
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!irie.ais.org!mjo
From: mjo@irie.ais.org (Mike O'Connor)
Subject: Re: I'm learning UNIX and I have a simple question
Message-ID: <P4f#=+-@engin.umich.edu>
Date: Thu, 20 Jun 91 08:57:06 GMT
Organization: Artificial Intelligence Society
References: <jpope.677361841@sysp1>
Reply-To: Mike O'Connor <mjo@ais.org>
Lines: 18

In article <jpope.677361841@sysp1> jpope@hq.af.mil (i991x) writes:

:I would like to strip off the first field (the id-name) and output to the
:screen four columns (four users per line instead of one) without the other
:information about where and when they logged in.

The "users" command sounds like what you'd need.  Not sure if it's
found in all Unixes, or a commad found in the BSD Unixes I generally
use.  It outputs the usernames all on one line, but it's entirely
possible to format the output any ol' way you want with tools like
cut, tr, awk/sed/perl, etc.





====
Mike O'Connor (mjo@ais.org)
