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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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