Question: 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

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!