3 if [ "$1" = --help ] ; then
4 echo "Usage: mo-get-users [--full]"
6 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
10 if [ -z "$CT_USER_LIST" ] ; then
11 if [ "$1" = --full ] ; then
16 awk -F: </etc/passwd "{ gsub(\",.*\",\"\",\$5); OFS=\"\t\"; if (\$3 >= $CT_UID_MIN && \$3 <= $CT_UID_MAX) print $FORM; }"
18 if [ "$1" = --full ] ; then
19 cut -d ' ' -f 1,2 <$CT_USER_LIST
21 cut -d ' ' -f 1 <$CT_USER_LIST