Question: ( c ) ( 2 points ) Give the command to produce the file listing as provided above. 1 2 . Consider the following bash
c points Give the command to produce the file listing as provided above.
Consider the following bash script and answer the questions that follow the line numbers are used so questions can refer to specific lines:
#binbash
# Assign $ argument to $dir, if $ is empty, use' as default.
dir$
if d $dir" ; then
echo "Files found: $find $dir" type $ wc
echo "Dirs found: $find $dir" type d wc
else
echo ERROR Please retry with another folder."
exit
f
a points Name and explain the purpose of #binbash in line
b points Explain what line does.
c points Briefly explain what the ifstatements checks in line
d points Explain the line and paying special attention to the piping command vertical bar
Page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
