I have an install script for a little program (script) that comes with man pages.
How can I find the location (full path) of the main man page directory?
As manpath
gives me a list of directories, I would like a command to get a single directory and in best case the main one in order to copy man-files there.