What symbols are used to enclose character ranges in grep? Select one: a. () b.
ID: 3586581 • Letter: W
Question
What symbols are used to enclose character ranges in grep?
Select one:
a. ()
b. ""
c. []
Which grep option would allow you to print out which lines do not match a given criteria?
Select one:
a. -l
b. -n
c. -v
d. -i
e. -c
zgrep is a front end for grep that allows it to read what kind of files?
Select one:
a. binary
b. compressed
c. tar only
d. csv
The locate command only supports basic regex and not extended regex.
Select one:
True
False
(Most) metacharacters lose their special meaning when placed within brackets.
Select one:
True
False
Explanation / Answer
note: ANSWER IS BOLD
question:
What symbols are used to enclose character ranges in grep?
Select one:
a. ()
b. ""
c. []
answer is: c
[] is used to specify the range in grep command
sh-4.4$ grep '[x-z]' example.txt
xyz
pxyz
question:
Which grep option would allow you to print out which lines do not match a given criteria?
Select one:
a. -l
b. -n
c. -v
d. -i
e. -c
answer is: c
-v is used to print the non-matching criteria line
sh-4.4$ grep -v '^x' example.txt
pam
sam
pamelot
camelot
samelot
pxyz
sh-4.4$ cat example.txt
pam
sam
pamelot
camelot
samelot
xyz
pxyz
zgrep is a front end for grep that allows it to read what kind of files?
Select one:
a. binary
b. compressed
c. tar only
d. csv
answer is : b.
zgrep is used to read the the compressed and gzip files
The locate command only supports basic regex and not extended regex.
Select one:
True
False
answer is: False
locate command support extended regular expression
(Most) metacharacters lose their special meaning when placed within brackets.
Select one:
True
False
answer is: True
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.