Question: Write a bash script called example3A.sh that prints a rectangle with the height and width dimensions given from two parameters passed as command line arguments.
Write a bash script called example3A.sh that prints a rectangle with the height and width dimensions given from two parameters passed as command line arguments. The syntax is as follows: example3A.sh height width The mandatory integral parameters height and width must be greater than 1, but can be any reasonable integral value (as long as the terminal supports it). If any of the parameters are less than 2, you are to display a meaningful error message and terminate the program. If no, two few, or too many arguments, are given, you are to display an appropriate usage statement, such as usage: ./example3A.sh height width, and terminate the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
