Please, any one help me in getting all users whose first character in their logins is 'g' ?
cat /etc/passwd | cut -d ":" -f 1 | egrep "^g"
is enough?