Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

shell script We derive a histogram of line-lengths. You must write a shell-script named his to that can be called in either of two ways:

shell script

image text in transcribed

We derive a histogram of line-lengths. You must write a shell-script named his to that can be called in either of two ways: histo filename, which reads the file named filename; or histo, which reads from standard-input. Output the histogram like this: 1 4 2 10 3 9 4 12 6 17. .. 20 4 Where the first number is the length of the line, and the second number is the number of lines that were found with that length. If there are no lines of length, say 5, omit the line 5 0 from the output. Notice that there are no spaces before the first number

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

Describe regression variation in terms of variation in Y.

Answered: 1 week ago