What's the command to grep all lines in subdirectories with \\ (together)? I tried grep -r "\\\\" . but that also catches single \ and I don't know why it would.


Put single quotes around the four backslashes so that bash doesn’t eat two of them.

  • OHHHH Bash is doing it. Derp – Carbon Jan 9 '18 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.