I often want to search through a man
page, however I am forced to either do:
man <package> | grep <search>
Or:
man <package> > file.txt
But there must be an easier way than this to do this, so how can I search through a man
page while in it instead of having to send its contents to a file, or use grep
to print the necessary matching contents to standard output?
grep
should work perfectly likeman something | grep what_to_search
if you want to save it as a fileman something | grep what_to_search >file.txt
– heemayl Aug 24 '15 at 23:04