Question: Given the following script that is run through . / test . sh hello goodbye: if [ - f $ 2 ] ; then echo

Given the following script that is run through ./test.sh hello goodbye:
if [-f $2]; then
echo "I am here"
fi
When will I am here be printed?
Never
If a file called "goodbye" exists in the current directory
If there are two files in the current directory
The script will always print I am here
If a file called "hello" exists in the current directory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!