User shells

From UCLUG
Revision as of 20:30, 28 September 2008 by Chruck (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
#/bin/sh

# tools:
# cut, sort, uniq, wc

# This script tells me the number of shells used by users on this
# system

cat /etc/passwd |cut -d: -f7 | sort| uniq | wc