Hi All,
have a file with list of server information, using awk just generating command
need to print second command in next line
---------------------------------------------------------------------
cat test.txt
mack
jack
cat test.txt | awk -v hst=$(hostname) ' { if ($1 == "jack" && hst = "varprod09" ) print "true" "yes" } '
---------------------------------
output
trueyes
-----------
desired output
true
yes