in reply to Re: Re: Parsing (l)unix man pages
in thread Parsing (l)unix man pages


perl -e 'open(FILE, "/usr/bin/man ssh | "); while(<FILE>) { print if /SYNOPSIS/ }'
(testing)%perl -e 'open(FILE, "/usr/bin/man ssh | "); while(<FILE>) { print if /SYNOPSIS/ }'
(testing)%


well see that doesn't work for me... I'm using hyperterminal in winNT dunno if that is why or not. I just get no output from the above cmd.

Replies are listed 'Best First'.
Re: Re: Re: Re: Parsing (l)unix man pages
by Anonymous Monk on Aug 21, 2001 at 01:35 UTC
    :(testing)%perl -e 'open(FILE, "/usr/bin/man ssh| ");while(<FILE>){pri +nt if /SYNOPSIS/ }' :(testing)%
    heh, didn't use code tags and it took out the <FILE> part but it still doesn't work.