DistributedNetworks
DistributedNetworks
SiteMap
Unix Concepts
Shell Concepts
Shell Scripting
Network Questions
Shell Components
«Prev
Next»
Unix Shell Programming
Shell Programming
Shell Components
Writing First Script
Working With Variables
DisNet
Unix Programming
Shell Programming
Shell Components
First Shell Script
Regular Expressions in Unix - Quiz
Understanding regular expressions
Select the best answer or answers for each question.
1.
Choose a pattern to find all dollar values from $10.00 to $99.99.
Please select the best answer.
A.
\$[1-9][0-9]\.[0-9][0-9]
B.
$[1-9][0-9].[0-9][0-9]
C.
\$[1-9]*[0-9]
D.
$[1-9][0-9]\.[0-9].
2.
Which of the following will the pattern [Aa].[Tt] include?
Please select all the correct answers.
A.
AST
B.
acting
C.
batch
D.
Astrabad
3.
Which of the following will the pattern [Aa]*[tT]. include?
Please select all the correct answers.
A.
batch
B.
Astrakhan
C.
rabbit
D.
atlas
4.
Choose the pattern that will find FarAway at the beginning of a line:
Please select the best answer.
A.
^FarAway
B.
\^FarAway
C.
^[FarAway]
D.
[0]FarAway
5.
Choose the pattern that finds all filenames in which
the first letters of the filename are chap,
followed by two digits,
followed by some additional text,
and ending with a file extension of .doc
For example :
chap23Production.doc
Please select the best answer.
A.
chap[0-9]*.doc
B.
chap*[0-9]doc
C.
chap[0-9][0-9].*\.doc
D.
chap*doc