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 Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in