Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

Discuss Simultaneous Moves Games and Nash Equilibrium Concept.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago