Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:30, bargasdevon123
To insert a column without using commands in any tabs, a user can -click and then click insert column.
Answers: 3
image
Computers and Technology, 22.06.2019 03:30, samone26
Some of your friends have gotten into the burgeoning field of time-series data mining, in which one looks for patterns in sequences of events that occur over time. purchases at stock exchanges--what’s being bought-- are one source of data with a natural ordering in time. given a long sequence s of such events, your friends want an efficient way to detect certain "patterns" in them--for example, they may want to know if the four events buy yahoo, buy ebay, buy yahoo, buy oracle occur in this sequence s, in order but not necessarily consecutively. they begin with a collection of possible events (e. g., the possible’ transactions) and a sequence s of n of these events. a given event may occur multiple times in s (e. g., yahoo stock may be bought many times in a single sequence s). we will say that a sequence s’ is a subsequence of s if there is a way to delete certain of the events from s so that the remaining events, in order, are equal to the sequence s’. so, for example, the sequence of four events above is a subsequence of the sequence buy amazon, buy yahoo, buy ebay, buy yahoo, buy yahoo, buy oracle their goal is to be able to dream up short sequences and quickly detect whether they are subsequences of s. so this is the problem they pose to you: give an algorithm that takes two sequences of even~s--s’ of length m and s of length n, each possibly containing an event more than once--and decides in time o(m n) whether s’ is a subsequence of s
Answers: 2
image
Computers and Technology, 23.06.2019 05:20, jaylenmiller437
Which operating system is a version of linux?
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, cxttiemsp021
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
Do you know the correct answer?
In this lab you will learn to write and execute a shell script that includes comments. you will use...

Questions in other subjects:

Konu
Mathematics, 06.06.2021 05:20
Konu
Social Studies, 06.06.2021 05:20
Konu
English, 06.06.2021 05:30