This is probably a very easy to answer question, but I could not find any questions already asking this due to different wording when writing titles.
Running help alias on my bash prompt returns only this:
alias: alias [-p] [name[=value] ... ]
Then a very short text that has nothing to do with what I'm asking.
I also tried:
help function
But that didn't give me much information either.
For example:
alias mancat="man command | cat"
So that I could run mancat grep which would be equivalent to man grep | cat.
I know that is called variables, but they are undefined and I would want to be able change them at any time like when running my example command.
manpages incat.cat -n, there's never any point to piping tocat.man grep | grep footo match lines containingfoo. I just figured that either you want to browse the man page in which caselessis much better since it can scroll with a mouse wheel and also allows searching or you want to parse the manpage in which case you can just pipe the output directly. If you want to dump the whole thing to your screen, you can indeed useman grep | catwhich is equivalent toman -P cat grep.