Question: How do I write a bash script called stairs that prints a staircase as shown below. The script will take a single command argument that
How do I write a bash script called stairs that prints a staircase as shown below. The script will take a single command argument that is the number of stairs. Use the functions from the functions script to validate the argument and to print sequences of spaces. Sample output is below. Make your stairs look exactly like these. Include a function called stair that prints one stair. Put it in the main script - not in functions.
calvin 09:29:04 > ./stairs 0 calvin 09:29:09 > ./stairs 1 o ******* /|\ * * / \ * * ************ calvin 09:29:14 > ./stairs 2 o ******* /|\ * * / \ * * o ******* * /|\ * * / \ * * ******************
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
