Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Requirements Write a shell script that accepts exactly 1 argument which must be a positive integer. The script will print a comma separated

Part 1 Requirements

Write a shell script that accepts exactly 1 argument which must be a positive integer. The script will print a comma separated list of integers, all on the same line, starting with the entered value and decreasing to 1.

The last printed value should not be followed by a comma.

The script should also be to handle the following errorsituations: o incorrect number of arguments o non-positive arguments (dont worry about trying to handle non-integer arguments)

The script must be able to execute on the cs.franklin.edu machine

The script file name must be: printnum.sh

The script must be located in $HOME/itec400/homework

Make sure the permissions on the your itec400 directory are 705 Make sure the permissions on your script are 705

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

Define and discuss one major role of advertising.

Answered: 1 week ago

Question

=+With whom does the firm have to negotiate?

Answered: 1 week ago

Question

=+Are there shop stewards?

Answered: 1 week ago