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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started