Exercise
Write the Bash script with the following if condition:
-
If the input parameter has a value of
Alice
, you print “Hello Alice”. -
If the input parameter has a value of
Bob
, you print “Hello Bob”. -
If none of the above cases hold, print “Hello John Doe”.
Make your file executable before running.
Get hands-on with 1400+ tech skills courses.