I'm trying to read the entire config file "rest.conf" using the awk command. However I want the output to print the username.
rest.conf
username = test
function
function getProperty () {
echo $(awk '/^'$1'/{print $3}' "rest.conf")
}
getProperty "username"
Any idea's why I can't view username when I run the script?