Question

NOTE: I just need the answer for question 5 and 6. I already knew the question...

NOTE: I just need the answer for question 5 and 6. I already knew the question 1-4, and wrote down all the requirements for clarification.

In this assignment, you are required to write a Bash script, call it assignment2.sh. Your Bash script has to accept at least four input arguments, and must:

1) Print to the user a set of instructions explaining how the PATH variable can be used in Bash.

2) Save the manual of the 'awk' command in the file /tmp/help.txt.

3) Shut down your Ubuntu box at 2 o'clock tonight.

4) Store your name and your partner's name in a text file inside your home directory. The name of the file must have the following format: ite404-<date>.txt, where <date> is the current date; e.g. ite404-2020-10-26.txt.

5) Get the input arguments and print them. After that, create four other scripts to print the first four words, respectively. For example, if the user inputs 'HELLO FROM AUIS UNI', then the first generated script must print the word 'HELLO', the second script must print 'FROM', and so forth.

6) Download Ubuntu 20.04 and store on a USB memory stick, which must act as a bootable DVD.

NOTE: I just need the answer for question 5 and 6. I already knew the question 1-4, and wrote down all the requirements for clarification.

Homework Answers

Answer #1

As mentioned in the quesution this solution to Quesion 5:
assignment2.sh

#!bash.sh

input=$1
echo $input


a=( $input )


cat > script1.sh << EOF1
echo "${a[0]}"
EOF1

cat > script2.sh << EOF1
echo "${a[1]}"
EOF1


cat > script3.sh << EOF1
echo "${a[2]}"
EOF1


cat > script4.sh << EOF1
echo "${a[3]}"
EOF1
----------------------------------------------------------------------------------------------------

Steps to run above script:
Lenovo@DESKTOP-ILNTL2L MINGW64 ~/Downloads
$ ./assignment2.sh 'Tmaway mata chapita tumi bandhu'
Tmaway mata chapita tumi bandhu

Lenovo@DESKTOP-ILNTL2L MINGW64 ~/Downloads
$ ./script1.sh
Tmaway

Lenovo@DESKTOP-ILNTL2L MINGW64 ~/Downloads
$ ./script2.sh
mata

Lenovo@DESKTOP-ILNTL2L MINGW64 ~/Downloads
$ ./script3.sh
chapita

Lenovo@DESKTOP-ILNTL2L MINGW64 ~/Downloads
$ ./script4.sh
tumi

Solution Question 6 :

It needs downloading of the software to a hardware device.It needs physical prescence.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Question I This question carries 20% of the marks for this assignment. You are asked to...
Question I This question carries 20% of the marks for this assignment. You are asked to develop a set of bash shell script: Write a script that asks for the user's salary per month. If it is less or equals to 800, print a message saying that you need to get another job to increase your income, what you earn is the Minim living cost. If the user's salary is higher than 800 and below 2000, print a message telling...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
please I want you to answer this question and most importantly, the answer is not already...
please I want you to answer this question and most importantly, the answer is not already available on this site or other site Course Learning Outcome: Apply Organizational behavior knowledge and skills to manage diversified culture in the organizational settings (Lo 2.2). Essay: Differences in Culture and Diversity at workplace Essay Write an essay about the differences in Culture and Diversity at workplace. Use examples, peer-reviewed journals to support your answer. This essay must be at least 1000-word in length....
*********JUST NEED JAVASCRIPT CODE************** I want you to create a Mad Libs game using the information...
*********JUST NEED JAVASCRIPT CODE************** I want you to create a Mad Libs game using the information from the lesson. There are a few requirements. The story must be printed out to the console. You must ask for a minimum of six (6) pieces of information. You must request at least three numbers add a number greater than one to each of them. What you decide to add is up to you but each value must be ADDED (not subtracted) to...
I NEED TASK 3 ONLY TASK 1 country.py class Country:     def __init__(self, name, pop, area, continent):...
I NEED TASK 3 ONLY TASK 1 country.py class Country:     def __init__(self, name, pop, area, continent):         self.name = name         self.pop = pop         self.area = area         self.continent = continent     def getName(self):         return self.name     def getPopulation(self):         return self.pop     def getArea(self):         return self.area     def getContinent(self):         return self.continent     def setPopulation(self, pop):         self.pop = pop     def setArea(self, area):         self.area = area     def setContinent(self, continent):         self.continent = continent     def __repr__(self):         return (f'{self.name} (pop:{self.pop}, size: {self.area}) in {self.continent} ') TASK 2 Python Program: File: catalogue.py from Country...
Hello, I have question 4 and 5 answered, with the answers provided. I just need some...
Hello, I have question 4 and 5 answered, with the answers provided. I just need some help on question 6, thanks! Q4.   On Friday, April 3, 2019 you bought the following portfolio for the prices in the table:                                                                                                   Prices            Prices                                                                                    Beta                4,3,2019         4,3,2020 10,000 shares of IBM (IBM)                              b = 1.44           S = $80.79        S = $90.45 20,000 shares of CITIGP (C)                              b = 1.23           S = $37.23        S = $12.67 7,500   shares of BOING (BA)                           ...
***** this is question and answer i just need the schema Data Modelling is the primary...
***** this is question and answer i just need the schema Data Modelling is the primary step in the process of database design. Compare and contrast Conceptual data model versus Physical data model. Illustrates with help of example to list down data (entities), relationship among data and constraints on data. Data Modeling:- Data Modeling is the first step in database designing.It is the representation of data model, or collected data. Also shows that collected data stored in database and linked...
Question: can I have answers with the five requirements? Golf World, Inc., issued $240,000 of 6%,...
Question: can I have answers with the five requirements? Golf World, Inc., issued $240,000 of 6%, 15-year bonds dated January 1, 2018 that will pay interest semiannually on June 30 and December 31. These bonds were issued at $198,494, and the market rate of interest was 8% at the issue date. Notice that you are given the face value and the selling price, so you can already determine if it was sold at a Discount or a Premium. This problem...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
Please answer in JAVA IDS 401 Assignment 4 Deadline In order to receive full credit, this...
Please answer in JAVA IDS 401 Assignment 4 Deadline In order to receive full credit, this assignment must be submitted by the deadline on Blackboard. Submitting your assignment early is recommended, in case problems arise with the submission process. Late submissions will be accepted (but penalized 10pts for each day late) up to one week after the submission deadline. After that, assignments will not be accepted. Assignment The object of this assignment is to construct a mini-banking system that helps...