Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (16 points) We want a Bash script which will take a lest of filcmanes on the connand line and print out how many lines

image text in transcribed
3. (16 points) We want a Bash script which will take a lest of filcmanes on the connand line and print out how many lines are in each file. For each of the following seripts, indiente whether it rorker. If it does not, show bow to fix it by changing the frucet characters posebble. (Note: output format is not important.) Script A Works as is. Nerds fixing: \#1 /bin/bash for filo in $0 do yc1file done Script B Works as is: Needs fixing \#!/bin/bash for file in \$* do echo n "isfile " grep c+1$sile done Script C Works as is. Needs fixing: \#1 bin/bash for file in? do echo - a "Sfile" tr -dc ' ln ' e sfile | wc c done Script D Works is is Needs tixing \#! / bin/bash 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Discuss the relationship between a manager and an HR professional.

Answered: 1 week ago

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago