Page 1 of 1

2) Worth 4 points. Using Linux Shell Scripting. - Creating and using the variables FirstNumber and SecondNumber, Impleme

Posted: Thu Jul 14, 2022 2:27 pm
by answerhappygod
2) Worth 4 points. Using Linux Shell Scripting. - Creating andusing the variables FirstNumber and SecondNumber, Implementdivision by 0, with error trapping, using if and while commands,How: a) using ANY Linux editor, append to your .sh file commandsthat will do the following: b) Append your name and CURRENT runningdate and time to a NEW file called results.txt "CURRENT runningdate" means, when the program is executed the CURRENT running timewill be appended to your results.txt file c) Using the variables:FirstNumber and SecondNumber, use a while loop. d) Ask the user toenter the FirstNumber. e) If the user enters the value 33 for thisFirstNumber, you must exit THIS Linux Shell Scripting SECTIONimmediately. f) Ask the user to enter the SecondNumber. g) If theuser enters the value 66 for this SecondNumber, you must exit THISLinux Shell Scripting SECTION immediately. h) If the SecondNumberis ZERO inform the user that you CAN NOT divide by ZERO, and askfor a correct SecondNumber only, KEEPING YOUR FirstNumber. i) Ifthe SecondNumber is NOT a zero, divide FirstNumber by SecondNumberthen display all numbers on this computation using labels, andappend all numbers on this computation using labels to theresults.txt file. example: 4 divided by 1 = 4 3) - Worth 1 point.Linux Shell Scripting. a) MANUALLY download to YOUR computer thefile, in the same folder where your program in the followingquestion b is located:http://users.cis.fiu.edu/~mrobi002/down ... 10.faUsing editors, append to your *.sh file, all the commands needed sothat when you execute your sh file, this file will produce thefollowing: b) Using the file in question 3a, find out and displaythe total amount of ACGT substrings found in the first 1,500 linesin the file in question 3a