Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Tasks Write a shell script that takes any command as a parameter and displays help on that command (e.g. the result of execution of man

Tasks

Write a shell script that takes any command as a parameter and displays help on that command (e.g. the result of execution of man ).

Write a script that takes three parameters. If number of parameters passed to the script is not equal to 3, it prints a warning message and displays a proper usage hint: "Usage: foo.sh param1 param2 param3". If 3 parameters are passed, the script should print some positive message.

Write a shell script that takes names of two files as parameters and copies content of one file into another without asking any questions. The copy should contain a note that it is a copy, name of the original file, current date and time after the content.

Write a shell script that takes a file name as a parameter and ask if a user wants to delete that file. If the answer is 'Y' and the file exists, it is deleted

Write a shell script that asks user to enter a number, prints that number and prints whether that number is odd or even.

Write a shell script that asks user's year of birth and prints "Minor" if the user is younger than 21, "Senior" if the user is older than 65, "Workforce" otherwise.

Write a shell script that takes file extension as a parameter and prints number of files with that extensions in the current directory.

Write a shell script that takes directory name and a file extension as parameters, creates a directory with the specified name and moves all files with the specified extension from the current directory to the new one.

Write a shell script that takes a number and a character ('C' or 'F') as parameters and converts that number from Celsius to Fahrenheit (if 'C' is passed) or vice versa (if 'F' is passed). If the number of parameters passed is not equal to 2, your script displays a usage note: "temp.sh ".

Write a shell script that takes no more than 5 numbers as parameters and prints the largest of them.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

Describe the major barriers to the use of positive reinforcement.

Answered: 1 week ago

Question

Have roles been defined and assigned?

Answered: 1 week ago