man bash | grep "\-d"
lots of results
man bash | grep " \-d"
no results
What’s going on here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s actually exactly what it looks like. There are no spaces, so grep doesn’t find any. If you examine the actual output of
man bash:then take a look at
datayou’ll see that what is rendered as a space on screen is actually an escape sequence. What looks like this on screen:is actually this:
Your terminal interprets these just fine. grep does not.