Assume someuser has a home directory /home/someuser
NAME=someuser
In bash - what expression to I use combining tilde (~) and $NAME to return the users home d
one alternative way
awk -F":" '{print "user: "$1", Home directory is: "$6}' /etc/passwd