Answered step by step
Verified Expert Solution
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
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 numberStep 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