I’ve got an exam and I’m only allowed to use the man pages. I’m wondering how I can find the pattern matching details in the man pages?
Something similar to this info:
http://www.gnu.org/software/bash/manual/bashref.html#Pattern-Matching
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.
for regexes in sed and grep and most standard Unix tools
man 7 regextells you about regexes used insed,grep, and most standard tools.See the man page for the tool itself as well, because there might be some exceptions.
for regexes in other tools
Many tools that didn’t originally come with Unix have their own syntax.
For example, for
perllook atman perlreand forvimtype:help patternfrom inside vim.for shell patterns
Also known as wildcards or globs.
man bashthen type/Pathname Expansion<Enter>.Or better yet, if
infois installed,info bashwill get you exactly the same information as the link in your question.You can drill down to the section manually, or get there directly by running:
a final tip
You can try searching for man pages by running:
For example: