Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago