How would I go about making a list of all man pages beginning with the letter "a"?
I have tried:
man a*
man [ a ]*
man [a*]
man {a}*
man {a*}
man "a*"
man 'a'*
man 'a*'
How would I go about making a list of all man pages beginning with the letter "a"?
I have tried:
man a*
man [ a ]*
man [a*]
man {a}*
man {a*}
man "a*"
man 'a'*
man 'a*'
how about man -k a*
man -k
searches in more than the mere man page name.
Maybe man -k . | grep -E '^a'
is more helpful.
Besides: a*
matches to anything, it can be an empty string.
man -w --names-only --regex '^a'
Thanks to all.
@vgersh99--your code gave a complete listing of all man pages with short descriptions, which is what I originally wanted
@stomp--your code showed me all the "a" pages with a short description
@nezabudka--your code showed me the location of all the "a" pages, in compressed form
then look at this option as well.
The program will go into all pages one after one.
matching this pattern
man --names-only --regex '^an'
pressing one by one 'q' and 'Enter'