Question: (5) ccepts a single positive integer as a command line argu- and prints all prime numbers less than the given integer. Make sure that the

 (5) ccepts a single positive integer as a command line argu-

(5) ccepts a single positive integer as a command line argu- and prints all prime numbers less than the given integer. Make sure that the 2. Create a shell script which a ment, user has provided a valid positive integer as the command line argument. Name your script [username] _primes_lab11.sh replacing username] with your username (i.e., jagraves21 primes_lab11.sh) Your completed script should have the following be- havior: /jagraves21_primes_lab11.sh Usage: /jagraves21_primes_lab11.sh num num, a positve integer S/jagraves21_primes_labl1.sh -7 error, num must be a positive integer. Usage: :/jagraves21_ primes_lab11.sh num num, a positve integer $/jagraves21_primes_lab11.sh 10a error, '10 a' is not an integer s ./jagraves21_primes_lab11.sh 42 2 3 5 7 11 13 1 19 23 29 31 37 41

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!