Question: SHELL SCRIPT: Provide the following questions with the codes and command line Problem 5: Take 5 input arguments in a for loop, but only add

SHELL SCRIPT: Provide the following questions with the codes and command line

Problem 5: Take 5 input arguments in a for loop, but only add the even i values to sum and display the result.

Problem 6: Write a shell script that accepts path of the directory and returns a count of all the files within the specified directory. (Hint: use alias to perform cd operation)

Problem 7: Write a shell script that takes an count value as an input parameter; set index = 0; sum up all the even values and odd values until index = count. Display the sum of even values and odd values.

Problem 8: Read lines of a text file line by line and display the output using shell script.

Problem 9: Write a shell script to print Fibonacci series for value <=50

Problem 10: Prepare a menu using case statement. Case 1 to display the user info; Case 2 display current directory; Case 3 display date and time; Case 4 display contents of the directory; Case 4: Display hidden files in the directory; Case 5: Display read-write permission of files in subdirectory.

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!