User shells

From UCLUG
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