Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ man grep | sed -n '/-i, --ignore-case/,+2p'
- -i, --ignore-case
- Ignore case distinctions in both the PATTERN and the input
- files. (-i is specified by POSIX.)
- sed -n '/-i, --ignore-case/,+2p'
- |<-Search pattern->|
- avinash@avinash-Lenovo-IdeaPad-Z500:~$ man grep | sed -n '/ *i, -/,+3p'
- -i, --ignore-case
- Ignore case distinctions in both the PATTERN and the input
- files. (-i is specified by POSIX.)
- avinash@avinash-Lenovo-IdeaPad-Z500:~$ man grep | sed -n '/ *V, -/,+3p'
- -V, --version
- Print the version number of grep to the standard output stream.
- This version number should be included in all bug reports (see
- below).
- avinash@avinash-Lenovo-IdeaPad-Z500:~$ man grep | sed -n '/ *F, -/,+3p'
- -F, --fixed-strings
- Interpret PATTERN as a list of fixed strings, separated by
- newlines, any of which is to be matched. (-F is specified by
- POSIX.)
- avinash@avinash-Lenovo-IdeaPad-Z500:~$ man grep | sed -n '/ *G, -/,+3p'
- -G, --basic-regexp
- Interpret PATTERN as a basic regular expression (BRE, see
- below). This is the default.
- man grep
- $ man grep | grep -A 1 '^ *-i'
- -i, --ignore-case
- Ignore case distinctions in both the PATTERN and the input
- files. (-i is specified by POSIX.)
- info grep Invoking Command-line Options Matching Control
- info --apropos=--ignore-case
- "(coreutils)join invocation" -- --ignore-case <1>
- "(coreutils)uniq invocation" -- --ignore-case <2>
- "(coreutils)sort invocation" -- --ignore-case
- "(gettext)msggrep Invocation" -- --ignore-case, ‘msggrep’ option
- "(grep)Matching Control" -- --ignore-case
- man grep | perl -00 -ne 'print if / -i/'
- LESS='+/--all' man ls
- LESS='+/-a' man ls
- /s{2,}-i
- / {2,}-i
- ^------------- space here
Add Comment
Please, Sign In to add comment