Write a shell script that takes a file name as a parameter

Assignment Help Computer Engineering
Reference no: EM132151402

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 <command>).

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 <Temperature> <C|F>".

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

Reference no: EM132151402

Questions Cloud

Write a program that allows the user to experiment : Your task is to write a program that allows the user to experiment with different multi threaded sort algorithms.
How will the website be tested : Quality Assurance: What approaches will be used to ensure that the site functions as expected at launch and in the future?
What must the inventory of the store be in order to conclude : What must the inventory of the store be in order to conclude that there at least 10 shirts in one of the three colors?
Figure out which version of freertos to use : Figure out which version of FreeRTOS to use, one suggestion is V8. RUN IT AND WATCH [there are V9 and V6 at least, available]
Write a shell script that takes a file name as a parameter : 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 ).
What is the purpose of watermark for a document : What are major features you need to include for a newsletter in Word? What do you think about Drop Cap for a newsletter?
Provide examples of application : Provide examples of application of each of the three design principles while designing instruction sets.
Determine the sum of all elements in vector : Replace each negative number in matrix M1 with zero. The matrix M1 is already defined.
Tabulate the slacks of the tasks : Indicate the ES (Earliest Start), EF (Earliest Finish), LS (Latest Start), LF (Latest Finish) times for each of the activities A through H.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are differences between oop and procedural programming

Response must be more than 250 words with a cited source. What are the differences between OOP and procedural programming?

  Develop a plan of action for cleaning up the wiring

The original structure was built in 1965. The facility has undergone several remodels aesthetically, with no real infrastructure changes.

  Graphically represent person class with the components

Instance variables name, age, and gender and instance methods setName, getName, and getAge.

  Forming a report which show employee information

Form a report that show the employee information, show on the form you generated in 1) above. The report should display this information for all the users, sorted alphabetically in the ascending order by LastName.

  Examine the sample size and sampling approach

For this assessment, students are expected to present a written research proposal that is based on the literature review (Assessment 1) and demonstrates.

  What is the difference between the sort and asort functions

What is the difference between the sort and asort functions? What happens if a script defines the same function more than once?

  This is a term long project and has 4 phases in phase 4

you have been hired as cio for a small independent auto-parts store - northwest georgia auto parts. the store has

  What would be the impact of predictive modeling

What would be the impact of predictive modeling on healthcare and medicine? Can predictive modeling replace managerial or medical personnel?

  What is a process control block and what is it used for

What is a process control block, and what is it used for? What is a thread? What resources does it share with other threads in the same process?

  Formulate a mathematical model to help developer maximize

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments.

  Find out the winner based on observation

Write down an application that randomly "throws"two dice and displays their values. Save as TwoDice.java

  Write an organizational policy to address it-related issue

Write an organizational policy to address the IT-related ethical workforce privacy issue that you described in Matrix B1, where you mapped key organizational issues and identified how these ethical issues were affected by laws.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd