Write a shell script that copies the file named by its first

Assignment Help Computer Engineering
Reference no: EM132076030

1. Write a script that tests for at least 1 or more arguments in the line calling the script. If there are 0 arguments (use positional parameters), then notify user ofthe problem and exit status 1. Ifuser puts in an argument, echo program running" and exit with a status of0.

2. Write a shell script that copies the file named by its first argument (it must already exist) to a file with the same name with the filename extension of.bak.

Thus, ifyou call the script with the argument first (and a file named first exists in the working directory), after the script runs you would have two files: first and first.bak Next, add a test routine to verify the user has used an argument that is a valid file andnot a directory.

Ifit ot then quit the script with an 'exit 1

Reference no: EM132076030

Questions Cloud

Calculate the total cost of material : Orr Company makes and sells a single product called a Bik. Calculate the total cost of material A budgeted to be purchased in March
What do you think were the challenges faced by coco cola : What do you think were the challenges faced by Coco Cola when they attempted to enter the Indian market the first time? What did they do wrong?
Display the total as the number of points earned : If Even, the player won the game. Display appropriate message and display the total (Sum1+Sum2) as the Number of points earned.
Produces several lines of oak furniture : Oakmaster furniture inc. produces several lines of oak furniture,ranging from traditional to contemporary.
Write a shell script that copies the file named by its first : Write a script that tests for at least 1 or more arguments in the line calling the script. Write a shell script that copies the file named by its first argument
Create a java class named circle that implements java : Create a Java class named "Circle" that implements java.io.Serializable interface and models a circle based on radius.
Determine barry and connies lowest taxable income : Connie sold for $40,000 property she had inherited from her father in 2010. Determine Barry and Connies lowest taxable income
Write the code to create a function that would ask the user : Open a new file named grade.py. Create a class named ask. Have this class when called print the words "This is an easy A".
Prepare a schedule to allocate the purchase price : Prepare a schedule to allocate the purchase price to Carbury's assets and liabilities assuming Mendol paid $560,000 cash for the acquisition

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why organization that meets the company''s specifications

A software application has been delivered to your organization that meets the company's specifications. Using associated examples, describe problems which may arise when it is installed and used in your organization.

  Derive the circuit diagram for a bcd counter

Derive the circuit diagram for a BCD counter that counts from 0 through 9 (and returns to 0) using clocked SR flip-flops. The counter increments only when.

  You have been asked to be the project manager for the

you have been asked to be the project manager for the development of an information technology it project. the system

  Dscribing the it governance structure and

describing the it governance structure and decision-making processes in the air force.nbspnbspinclude a discussion on

  What do you understand by structural parallelism

What do you understand by structural parallelism in a parallel program? List the different possible forms of structural parallelism which we have studied.

  Explain differences between the various graphic formats

explain differences between the various graphic formats. express some ways to increase your site's search engine ranking.

  Discuss the interface of a module that implements the stack

Discuss the interface of a module that implements the abstract data-type STACK, where operation pop raises an exception if called to operate on an empty stack.

  Write a single EBNF rule for the language

What category or paradigm of programming language has a structure dictated by the von Neumann computer architecture - interpreter compared with using a compile

  What is the worst case time complexity of the algorithm

What is the worst case time complexity of the algorithm? What property holds for the array A if the algorithm returns 0?

  How you do or could use operations security

Describe how you do or could use operations security in your current job. If you are currently unemployed or in a job in which you are not able to apply.

  What if we choose another number for n

For N = 20, what range of scores are possible? How many variables will you need to hold the probability estimates for those scores? What if we choose another number for N?

  Write a report on memory management with emphasis on memory

Write a 500+ Word technical report on "Memory management" with emphasis on virtual and cache memory. Include extensive diagrams and examples. Address the following points in your report: Introduction.

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