Question: Linux 4. Write a script to pass arguments command arguments (3 arguments maximum). Display the argument one by one. If there is no argument provided,

Linux

4. Write a script to pass arguments command arguments (3 arguments maximum). Display the argument one by one. If there is no argument provided, remind users about the mistake. Provide script code and screenshot of script runs. (10 pts)

5. Write a script that will accept a file name and provide output if the file exists, or not, in the current directory. Provide script code and screenshot with test input file that exists and does not exist. (10 pts)

6. Write a script that will accept a file name and provide total word count in the file. Provide script code and screenshot of running with an input file. (10 pts)

7. Write a script that will count the number of files in each directory and displays output of directory and total number of files. The script should run from root director. Provide script code and screenshot of script runs. (10 pts)

8. Write a script that represents a simple command line calculator. It will accept two numbers from command line, and then display sum, difference and product of these two numbers. Provide script code and screenshot of script runs. See a sample output below. (10 pts)

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!