Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a bash script shell b. Word-Character Count (Iwcc) Write a script (called Iwce) to count and report the number of characters and words in

Write a bash script shell image text in transcribed

b. Word-Character Count (Iwcc) Write a script (called Iwce) to count and report the number of characters and words in each line of a given file(s). The input to the script is a file list (one or more files separated by a space). The reported output shall include, for each file, the file name followed by a colon ( on one line, and starting from the next line it shall print one triplet ### wc## cc###, per line of the input file, such that five triplets, separated by "|", are printed per output line For example, suppose the input file is called abcd which contains the 5 lines above, then the output of the command "lwcc abed" would print the following: abcd: 001 wc19 cce99 002 wc21 cc101 003 wc19 cc100 e04 wc19 cc099 005 wc14 cc073 Test your scripts thoroughly before you submit the assignment, to make sure it will do the tasks as described and make sure that all possible errors are handled correctly

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

=+Which associations exist?

Answered: 1 week ago