Write the output and function for following shell script and

Write the output (and function) for following shell script and C statement. $pwd/Home $1s HW3 .pdf ql. sh $cat q1. sh if [-e ~/HW3.pdf] then echo The full path of HW3.pdf is \'pwd\' else echo HW3 does not exist in current directory. fi $./ql.sh Output:

Solution

The output of the code is:

/Home/HW3.pdf

The above code checks whether the specified file (~/HW3.pdf) exists or not.

If it exists, the full path will be displayed, else, a prompt specifying that the file doesn\'t exist will be displayed.

 Write the output (and function) for following shell script and C statement. $pwd/Home $1s HW3 .pdf ql. sh $cat q1. sh if [-e ~/HW3.pdf] then echo The full path

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site