Question: Part 2 - Linux Shell Scripting - Worth 5 points. - NOT using editors, create a sh file named: program2.sh - Set this *.sh file

Part 2 - Linux Shell Scripting - Worth 5 points. - NOT using editors, create a sh file named: program2.sh - Set this *.sh file to: chmod 755 *.sh - NOT using editors, append your name, current date and time to a NEW file called results.txt - NOT using editors, append to the *.sh file, all the commands needed so that when you execute your sh file, this file will produce the following: How: - Ask the user to enter a number. - Verify that the number is between 1 and 100. - If the number is not between 1 and 100, then keep asking the user to enter a number until it is valid. - Use a for loop from 1 to the value entered by the user - Sum the results of calculating each number mod 5 - After the for loop ends, display the sum of all previous results and append it to the results.txt file as follows Sum of numbers is xxx 

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!