cut -d: -f1,5,7 /etc/passwd | grep -v sbin | grep sh | sort > users.txt awk -F':' ' { printf( "%-12s %-40s\n", $1, $2 ) } ' users.txt # Clean up the temporary file. /bin/rm -rf users.txt