Question: Introduction to UNIX CSCI 2231K Section Name: Assignment 7 Date: Write a shell script called maximum.sh. When run, this program will first print out a

 Introduction to UNIX CSCI 2231K Section Name: Assignment 7 Date: Write

Introduction to UNIX CSCI 2231K Section Name: Assignment 7 Date: Write a shell script called "maximum.sh". When run, this program will first print out a short instruction message like the one below. Afterward, it will read integers, one-per-line until it reads the word end, at which it point it will report the maximum value given by the user and exit. username@sun> /maximum.sh Enter a sequence of numbers followed by "end" 27 302 38 92 end maximu:302 Write a shell script called square.sh. This program will take a single command-line argument, a number between 5 and 79 (inclusive). If the given number is out of this range, your program should print out an error message and then exit. If your program is given legal input, it should print a square shape like the following (which would be output if you square.sh was run with an argument of 7). The printed square is always outlined with two rows/columns of asterisks; the command-line argument determines the height of the square. 4*84* 494**

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!