subject

Write a bash script which: if run without parameters, prints an error message and exits takes 1 parameter, which must be a valid path (absolute or relative) if run with 1 parameter which cannot be interpreted as a path, prints an error msg and exits if run with more than 1 parameter, uses the first parameter and ignores the rest if the value of the first parameter does not exist, creates it if the value of the first parameter exists but is not a directory, print an error msg and exit if the value of the first parameter exists, copies the script itself to that directory

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
You know the right answer?
Write a bash script which: if run without parameters, prints an error message and exits takes 1 para...
Questions
question
Computers and Technology, 31.07.2019 08:00
question
Chemistry, 31.07.2019 08:00
question
Biology, 31.07.2019 08:00
Questions on the website: 13722360