Consider the following file legal file:disclosurenon-disclosurenon-disclosureWhich line or lines in the file does the following command match? Note the space after the dash within the brackets.grep "non [-] disclosure" legalfile
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.
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.
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.
Jennie
8 months agoGracie
8 months agoGracia
8 months agoMarguerita
9 months agoAmie
9 months agoRenea
9 months agoLauna
9 months agoBettyann
10 months agoAlberto
10 months agoJimmie
10 months agoDaniel
10 months agoRutha
10 months agoTiffiny
11 months agoMignon
11 months agoOlen
11 months agoSharee
11 months agoFreida
1 year agoLenny
1 year ago