#!/bin/sh [ $# -eq 0 ] && { echo "usage: `basename $0` user" >&2; exit 1; } grep "^$1:" /etc/passwd | awk 'BEGIN { FS = ":" } { print $6 }' .