Question: Write a bash shell script using one or more functions to receive two words as input. Then count the number of characters per word and

Write a bash shell script using one or more functions to receive two words as input. Then count the number of characters per word and displays the word with the largest number of characters. If the words have the same amount of characters, then display all words of the same length.

Example of the script output:

[jalcorn@blanca]$ ./question5 one three

The longest word(s) is: three

[jalcorn@blanca]$ ./question5 one two

The longest word(s) is: one two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!