Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started