Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

From the tutorial on variables I want you to use the example of the command line arguments to build build script which will copy a

image text in transcribed

From the tutorial on variables I want you to use the example of the command line arguments to build build script which will copy a file into a new directory that is created by the script. Your script will need to take in 2 arguments just like the example. Argument 1 is the name of the new directory where the coppied file will go. Argument 2 is the file to be coppied. Argument 3 is the name of the new file. Notice the example below! I created a script called copies.sh and the first argument is the new directory "newDir". The second argument is the file to be copied "test.txt". The thrid argument is the copied files name "test2.txt". cisstudentdCISVM:/bash_files$ ./copies.sh newDir test.txt test2.txt cisstudent@CISVM:-/bash files$ ls copies.sh name.sh newDir test.txt cisstudent@CISVM:~/bash files $ cd newDir/ cisstudent@CISVM: -/bash_filesewDir$ ls test2.txt cisstudent@CISVM:-/bash_filesewDir$ |

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago