3 ms·
What about: man foo | grep bar Then you only get the line with "bar" in it. (append -C 1 at the end to get 1 line before and 1 after the term you grepped for).
by VvR-Ox 8y ago
What about:
man foo | grep bar
Then you only get the line with "bar" in it. (append -C 1 at the end to get 1 line before and 1 after the term you grepped for).
And of course you can pimp your terminal experience by using fish (https://fishshell.com/ https://fishshell.com/) as it ships with autosuggestions and other really nice features. (Beware that it will not provide 100% POSIX compliance but if that's an issue you can use ZSH or pimp your bash as well).
Then there is other kind of man pages like TLDR (https://github.com/tldr-pages/tldr https://github.com/tldr-pages/tldr) which is curated by community and quite awesome ;-)
- sjmulder 8y ago> What about: man foo | grep bar I prefer to search from within the pager to see the option description in context: man httpd /-n Then 'n' for the next hit or 'N' for the previous, like vi. This is for 'less' in general, not just man.