Chapter 5 quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

False

A popular use of pr is to convert lowercase characters to uppercase characters. True

Korn

Bash is a freeware derivative of the Bourne and ____ shells.

five

By default, each page in the output of pr has a ____-line header, which, by default, contains the current file’s name, its last modification date, the current page, and a trailer consisting of blank lines

66

By default, pr formats the specified files into single-column pages of ____ lines.

./

One way to run a shell script is to make it executable by using the x permission and then typing ____ prior to the script name when you run the script itself.

comm

The ____ command locates identical lines within two identically sorted files.

uniq

The ____ command removes duplicate lines from a file

printf

The ____ function within the awk command is used to format output.

-B

The ____ option of the diff command does not compare for blank lines.

-b

The ____ option of the diff command ignores blanks that repeat.

-y

The ____ option of the diff command is used to display the differences side-by-side in columns.

-c

The ____ option of the diff command shows lines surrounding the line that differs.

-v

The ____ option of the grep command displays only lines that do not contain the search pattern.

-u

The ____ option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively.

pipe operator (|)

The ____ redirects the output of one command to the input of another command.

True

The pipe operator can connect several commands on the same command line.

a\

To append new lines in sed, you must use the ____ command

%d

When using the printf function, ____ indicates that the output is to appear in decimal digits.

False

You can use the < operator to redirect a command’s output from the screen to a file.

True

You can use the less command with a directory to view its contents one screen at a time, such as less /sbin.

True

You can use the vi editor to create script files.

pound (#)

You use the ____ character in script files to mark comments.

grep

You use the ____ command to search for a specified pattern in a file, such as a particular word or phrase.

sed

____ is NOT a selection command.

Awk

____ is a full-featured programming language.

uniq

____ is a selection command.

diff

compares and selects differences in two files

comm

compares sorted files and shows differences

wc

counts characters, words, or lines in a file

sed

edits data streams

pr

formats and prints

cut

selects columns (fields)

grep

selects lines or rows

sort

sorts and merges multiple files

tr

translates and deletes character by character


Kaugnay na mga set ng pag-aaral

csci 260 midterm <pt 1: revision>

View Set

327 Chapter 28: Patients with Urinary Disorders Q's

View Set

Chapter 9 Explaining Transport Layer Protocol

View Set

Mastering Biology Pollinators II: Chapter 13

View Set

chapter 10 international finance

View Set

oxygen dissociation curve (MIDTERM 2)

View Set

Chapter One: A First look at Anatomy

View Set