Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started