New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 702-100 Exam - Topic 6 Question 44 Discussion

Actual exam question for LPI's 702-100 exam
Question #: 44
Topic #: 6
[All 702-100 Questions]

Consider the following file legal file:

disclosure

non-disclosure

non-disclosure

Which line or lines in the file does the following command match? Note the space after the dash within the brackets.

grep "non [-] disclosure" legalfile

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

0/2000 characters
Jennie
2 months ago
Just the non-disclosure lines, nothing else!
upvoted 0 times
...
Gracie
2 months ago
I thought it would match disclosure too, but it doesn't.
upvoted 0 times
...
Gracia
2 months ago
It matches both non-disclosure lines.
upvoted 0 times
...
Marguerita
3 months ago
Definitely B and C!
upvoted 0 times
...
Amie
3 months ago
Wait, are you sure about that?
upvoted 0 times
...
Renea
3 months ago
I’m confused about the space after the dash. Does that mean it won’t match anything? I thought it would match the non-disclosure lines, but now I'm not so sure.
upvoted 0 times
...
Launa
3 months ago
This feels similar to a practice question we did where we had to account for spaces. I think it might match both non-disclosure lines, but I could be wrong.
upvoted 0 times
...
Bettyann
4 months ago
I'm not entirely sure, but I remember something about how grep handles spaces in patterns. Does it mean it will only match if there's a space?
upvoted 0 times
...
Alberto
4 months ago
I think the command is looking for "non" followed by a space and then "disclosure," so it should match both non-disclosure lines.
upvoted 0 times
...
Jimmie
4 months ago
Yep, I agree with Emily. The answer is C, "non-disclosure only".
upvoted 0 times
...
Daniel
4 months ago
I think I've got it. The command will match both "non-disclosure" lines, since the pattern includes the space after the dash. The other lines won't be matched.
upvoted 0 times
...
Rutha
4 months ago
I'm a bit confused here. Does the space after the dash matter? And will it match both "non-disclosure" lines or just one?
upvoted 0 times
...
Tiffiny
4 months ago
Okay, let me break this down step-by-step. The grep command is looking for "non [-] disclosure", so it should match lines with "non-disclosure".
upvoted 0 times
...
Mignon
5 months ago
Hmm, this looks like a tricky grep question. I'll need to carefully read the command and think through the pattern matching.
upvoted 0 times
...
Olen
5 months ago
I think Sharee is mistaken, the command only matches 'non-disclosure' so the answer is B) non-disclosure only.
upvoted 0 times
...
Sharee
5 months ago
I'm not sure, but I think the answer might be D) disclosure and non-disclosure only.
upvoted 0 times
...
Freida
6 months ago
I agree with Lenny, because the command matches 'non-disclosure' exactly.
upvoted 0 times
...
Lenny
7 months ago
I think the answer is B) non-disclosure only.
upvoted 0 times
...

Save Cancel