Question: 3. (16 points) We wat a Basls script which will take a list of filenumes on the connuand line and prit out how many lines

 3. (16 points) We wat a Basls script which will take

3. (16 points) We wat a Basls script which will take a list of filenumes on the connuand line and prit out how many lines are in each file. For each of the following scripts, indicate whether it rorke. If it does not show bow to fix it by changing the frucet characters posoble. (Note: output format is not important.) Script A Works as is: Needs fixing: \#) /bin/bash for filo in $0 do ve1file done Script B Works as is: Needs fixing. \#!/ /bin/bash for file in \$* do echo n $sfile " grep c,1 \$file done Script C Works as is. Needs fixing. \#1. bin/bash for file in. do echo - a "\$file" tr dc ' an ' e sfile | wc c done Script D Works 18 is, Needs fixing \#! /bin/bazh for file in $6 do echo -n "\$file * awk 'END { print NR \}' sfile done

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 Databases Questions!