Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Parsing (l)unix man pages

by Cine (Friar)
on Aug 21, 2001 at 00:57 UTC ( [id://106367]=note: print w/replies, xml ) Need Help??


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

Man usually just prints the text when it sees that the output is not going to a terminal...

T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: Re: Parsing (l)unix man pages
by Anonymous Monk on Aug 21, 2001 at 01:32 UTC
    
    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.
      :(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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://106367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-25 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found