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
5 months agoGracie
6 months agoGracia
6 months agoMarguerita
6 months agoAmie
6 months agoRenea
6 months agoLauna
7 months agoBettyann
7 months agoAlberto
7 months agoJimmie
7 months agoDaniel
7 months agoRutha
8 months agoTiffiny
8 months agoMignon
8 months agoOlen
8 months agoSharee
9 months agoFreida
10 months agoLenny
10 months ago