Question: Write a bash script called that prints a rectangle with the height and width dimensions given from two parameters passed as command line arguments. The
Write a bash script called that prints a rectangle with the height and width dimensions given from two parameters passed as command line arguments. The syntax is as follows: minor3A.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: height width, and terminate the program. In this program, you are to draw the appropriate sized rectangle with the '+' character on all four corners, the '-' character at the top and bottom rows between the '+' characters at the corners, and the '|' character at the first and last columns between the '+' characters at the corners, with spaces in between.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
