What values need to be passed to the variables val1 and val2 in the below code to get "Newyork" as output?

if [ $val1 = $val2 ]; then
  echo "London"
else
  echo "Newyork"
fi

The code has error

1,1

abc,abc

3,3abc

Verified Answer
Correct Option - d

To get all Infosys Certified Unix Associate Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram