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 q1.sh $cat q1. Sh if [-e ~/HW3.pdf] then echo The full path of Hw.3 pdf is \'pwd\' else echo Hw3 does not exist in current directory. Fi $./q1.sh Output:

Solution

the hw3.padf and the shell script are in the same directory which is home,whenever the script runs it will check wether the hw3.pdf is in the directory or not

here the file is exist in the directory because ls command shows their existence

so the ouput of the script is

the fullpath of hw3.pdf is /home

 Write the output (and function) for following shell script and C statement. $pwd/Home $1s HW3. Pdf q1.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