Create a directory and name it Lin_a2 and do the following tasks within Lin_a2. Show each command
Question:
Create a directory and name it Lin_a2 and do the following tasks within Lin_a2. Show each command with a screenshot.
a. echo Jordan >> file1
echo Mitch >> file2
b. Write a script to swap the names of two files, file1 and file2. After running the script, file1 should contain "Mitch" and file2 should contain "Jordan".
c. Write a script shell.sh that first assigns variables a, b, c with value 1,2,3, respectively and then print the product of the three variables.
d. Revise the script to be shell2.sh such that it obtains the values from the terminal and assign them to variables a, b, c. The script should print the product of the variables. For instance, $ ./shell2.sh 2 3 4 should print 24.
Fundamentals of Financial Accounting
ISBN: 978-1259269868
5th Canadian edition
Authors: Fred Phillips, Robert Libby, Patricia Libby, Brandy Mackintosh