I want to create a script that will return only the synopis and description parts of the man page that I call with man
so if I say "$0 rm" I would get a string with rm and its manpage down to the first paragraph in description.
removing the SYNOPSIS and DESCRIPTION text.
what are some ways I can do this?
my first line...
open(MAN, "$manpath $arg |") or die"ERROR:$!\n";
@manpage = <MAN>;