UNIX/Linux Programming Answers

Questions: 170

Answers by our Experts: 135

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a Linux shell script that performs the following tasks:

a. Provide a mystery integer between 1 to 10.

b. Using “while” loop, allow the user to guess the random number until the user

got it right.

c. If the user’s entered number is lower or greater than the random number,

notify the user to guess higher or lower respectively.

d. If the user enters any number out of the 1 to 10 range, notify the user to

enter in the correct number range.

e. Display a congratulatory message along with the random number if the user

guessed it correctly.


Write a script called Student.sh that will accept the following student details: studentID, StudentName, ContactNo and Email. The program should add records to a file called Student_Details.txt under each heading, at the end of each record the program should prompt you if you want to add more records and if yes it should allow you to continue adding the records.


Write a shell script called Grading.sh that will accept StudentID and Grade and the student are graded using the following grading criteria: 80 and above, Destination, 79-60, Merit, 59 -50, Pass, 49-40, Supplement and 39 and below, Fail. The program should add the records to a file called StudentGrades.txt.


1.   Write a Linux shell script that performs the following tasks: 

 

a.   Provide a mystery integer between 1 to 10. 

b.   Using “while” loop, allow the user to guess the random number until the user got it right. 

c.   If the user’s entered number is lower or greater than the random number, notify the user to guess higher or lower respectively. 

d.   If the user enters any number out of the 1 to 10 range, notify the user to enter in the correct number range. 

e.   Display a congratulatory message along with the random number if the user guessed it correctly.  

 

 

Provide the shell script along with the sample output screenshot.


1.   Write a Linux shell script to perform the following tasks in a given directory using “for” loop:  


b. Move these *.sh files to another directory  


Provide at least TWO (2) shell simple scripts samples to be executed for this program.  


1.   Write a Linux shell script to perform the following tasks in a given directory using “for” loop: 

 

a. Change all files with *.sh extension to executable for all users  


Provide at least TWO (2) shell simple scripts samples to be executed for this program.  


Given album name and corresponding directory, this scripts renames the jpg files with new name passed through command line

Write Linux Shell script to check whether a sample file is readable, writable, and executable


Write Linux Shell script to display current working directory.  


Write Linux Shell script to display current date and time  


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS