How to list shell of account?

Hello. I have been trying to figure out something very simple that I know I've done before; which is list the shell of a specific account. In this case it is the account: "news". I know how to change the shell using chsh, just not list it. I want output like "/bin/sh" only. Any thoughts or ideas are appreciated, thanks.

If you

grep "news" </etc/passwd

you will see the details for account news

See also -->

That's sort of what I want...but I need the last part of it by itself, and I don't think awk will work here because there are no spaces. There's no way to do kind of like this?

echo $SHELL

Only instead of giving me my current shell, have it give me any account I specify?

One way to look up the login shell of the account "news":

awk -F: '{if ($1==name) {print $7; exit}}' name=news /etc/passwd

If it's installed, try using "finger":

[sandholm@sys1-lnx ~]$ finger news
Login: news Name: news
Directory: /etc/news Shell: /bin/sh
Never logged in.
No mail.
No Plan.
[sandholm@sys1-lnx ~]$

This works perfectly, thanks!