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

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!