DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Shell Components
«Prev
Next»
Shell Programming
Shell Programming
Unix Shell Available
Determining Unix Shell
Shell Scripts Unix
Interpreted Compiled Programs
Understanding Scripting Options
Cmpiled Programs
Shell Components
Shell Script Macro
Built in Components
Input Output Tools
Shell Script Tests
Script Variables
shell-script-control-structures
Regex Define Patterns
Shell Program Components
Writing First Script
Interactive Shell Script
Defining Script File
Using Text Editor
Read Input Command
Including Comments Scripts
Setting File Permissions
Running Command Line
Working With Variables
Command Line Arguments
Using Positional Variables
Predefined System Variables
System Variables
Environment Variables
Syntax Affects Interpretation
Using Strings Variables
Using Numbers-inVariables
Performing Math Variables
Using Array Variables
Scripts Variable Summary
Designing Scripts
Script Objective
Script Flow
loop Tests
Checking Commands
error Trapping
Making Script Portable
Documenting Script
Designing Shell Scripts
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
Linux Shell Scripting