subject

In this lab you will learn to write and execute a shell script that includes comments. you will use chmod to make the file that holds the script executable and include a line that starts with #! in the script to make sure bash executes it. this lab also provides an introduction to positional parameters.

reading read "writing and executing a simple shell script" on pages 294–299 of sobell. procedure
1. use vim or cat (see page 20 of this lab manual for instructions) to create a file named short with the following line in it:
echo 'hi there'

2. use cat to verify the contents of short and then try to execute it. use ls –l to display the permissions for short. read the tip on sobell, page 296.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i.e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
In this lab you will learn to write and execute a shell script that includes comments. you will use...
Questions
question
Physics, 10.11.2021 01:00
question
Mathematics, 10.11.2021 01:00
question
English, 10.11.2021 01:00
question
English, 10.11.2021 01:00
question
Mathematics, 10.11.2021 01:00
question
Mathematics, 10.11.2021 01:00
question
Mathematics, 10.11.2021 01:00