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
Get step-by-step solutions from verified subject matter experts
