Question: BASIC BASH SCRIPT Question 1 Write a bash script to implement a simple calculator program. The program accepts three parameters, the first and third are
BASIC BASH SCRIPT

Question 1 Write a bash script to implement a simple calculator program. The program accepts three parameters, the first and third are integers, the second is an operation (- x/) where x is multiplication. Then it displays the result of the calculation. For example Mycalc.sh 9 x 2 18 Question 3 Write a bash script that takes no arguments and prints the number of files and subdirectories in the current directory. If there is any arguments it should display No arguments please Question 4 Write a shell script using sed to read a file name and print only the lines containing ABC twice to the standard output. Question 1 Write a bash script to implement a simple calculator program. The program accepts three parameters, the first and third are integers, the second is an operation (- x/) where x is multiplication. Then it displays the result of the calculation. For example Mycalc.sh 9 x 2 18 Question 3 Write a bash script that takes no arguments and prints the number of files and subdirectories in the current directory. If there is any arguments it should display No arguments please Question 4 Write a shell script using sed to read a file name and print only the lines containing ABC twice to the standard output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
