Preview

Doc. Unix

Good Essays
Open Document
Open Document
1228 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Doc. Unix
1. You have just finished a 25-page paper that you have written using Emacs.The file containing the paper is called /assignments/data_sources. After your instructor has briefly looked at the paper, she recommends that you change all instances of the reference
“data is” to “data are” before you submit it.Which of the following commands can you use to locate these references in the file for a quick assessment of how much you have to change?
a. find - i 'data is' /assignments/data_sources
b. test /assignments/data_sources "data is"
c. grep "data is" /assignments/data_sources
d. scan -t data is /assignments/data_sources

2. You are interested in determining the number of words in your /assignments/ data_sources file mentioned in Question 1.Which of the following commands should you use?
a. wc -w /assignments/data_sources
b. wc -m /assignments/data_sources
c. counter /assignments/data_sources
d. counter -c /assignments/data_sources

3. Which of the following are examples of manipulation and transformation commands? (Choose all that apply.)
a. sed
b. pr
c. join
d. paste

4. Which of the following is true of the pipe operator? (Choose all that apply.)
a. Only one pipe operator can be used on a single command line.
b. It is used to perform division on the results of a numerical command operator.
c. It is used instead of the colon (:) for entering multiple commands
d. It redirects the output of one command to the input of another command.

5. Because the data was formatted the same in two inventory files, you decided to combine their contents into one file. Now you want to determine if there are duplicate entries on consecutive lines in the new file.Which of the following commands enables you to find the duplicate entries?
a. dup
b. pr
c. uniq
d. cat

6. Your friend is using the command comm entryfile, but is getting an error message.
What is the problem? (Choose all that apply.)
a. entryfile contains only numbers, but the comm command must be used on a file with text.
b.

You May Also Find These Documents Helpful

Related Topics