Need help Linux Scripts
Can some do a few example scripts for me:
I need 2 linux scripts written:
Script 1:
Insert a reference to the bash shell, appropriate comments, and your name as author.
Accept five positional parameters from the command line.
Display all five values on the screen.
Display a usage clause if the incorrect number of values is entered.
Display an average of the five values.
Save the script, close the editor, make the script executable, and then execute the script.
Scritp 2:
Convert the following pseudocode into code for the script:
Read in three grades from the keyboard
Average the grades
Display the appropriate letter grade for the number grade using this scale:
90 to 100: Display a letter grade of “A”
80 to 89: Display a letter grade of “B”
70 to 79: Display a letter grade of “C”
65 to 69: Display a letter grade of “D”
0 to 64: Display a letter grade of “F”
Insert appropriate comments
Save the script, quit the editor, and then make the script executable
Trying to see how this logic works.
|
Recent comments
1 day 9 hours ago
1 day 18 hours ago
1 day 21 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 3 hours ago
2 days 19 hours ago
2 days 20 hours ago