Student Center
|
Instructor Center
|
information Center
|
Home
Glossary
Sample Configuration Scripts
Internet Resources
Choose a Chapter
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
Multiple Choice Quiz
True or False
Feedback
Help Center
Introduction to UNIX
Kate Wrightson
Joe Merlino
Shell Programming III - Regular Expressions
True or False
Click on the correct response for each question below.
1
Pattern matching in Unix is done with "regular expressions".
A)
TRUE
B)
FALSE
2
"Regular expression" is a symbol which stands in for particular textual strings.
A)
TRUE
B)
FALSE
3
Most metacharacters are used directly at the shell prompt.
A)
TRUE
B)
FALSE
4
The acronym GREP stands for "graphic expression".
A)
TRUE
B)
FALSE
5
"grep" searches for file names that match a pattern.
A)
TRUE
B)
FALSE
6
Output from "grep" by default, normally goes to the printer.
A)
TRUE
B)
FALSE
7
"grep" often gets its input, not from a file, but from output piped from another command.
A)
TRUE
B)
FALSE
8
The "\" (backslash), when preceding a character, means to skip that character.
A)
TRUE
B)
FALSE
9
The simple statement "awk '{print $1}' hello.doc" will cause the first field of every record in "hello.doc" to be displayed on the standard output device.
A)
TRUE
B)
FALSE
10
"Sed" ,when invoked, allows you to specify a file containing "sed" commands to be executed.
A)
TRUE
B)
FALSE
2003 McGraw-Hill Higher Education
Any use is subject to the
Terms of Use
and
Privacy Policy
.
McGraw-Hill Higher Education
is one of the many fine businesses of
The McGraw-Hill Companies
.