"spectre -help" without page scrolling...

S

spectrallypure

Guest
Hi all!
Does anybody know if its possible to force Spectre in command line
mode to show the help contents without the automatic page scrolling?

spectre -help <keyword>

would automaticallly wait for the user input to scroll through the
help contents, which prevents the text output from being passed to
other commands. The help pages for some topics can be rather long, and
very often I would like to have the text being output in one chunk so
as to pass it to the "grep" command and search for specific words.

....I have searched in the command line options but found nothing...
any ideas on how to accomplish this?

Cheers,

Jorge.
 
spectrallypure wrote:
Hi all!
Does anybody know if its possible to force Spectre in command line
mode to show the help contents without the automatic page scrolling?

spectre -help <keyword

would automaticallly wait for the user input to scroll through the
help contents, which prevents the text output from being passed to
other commands. The help pages for some topics can be rather long, and
very often I would like to have the text being output in one chunk so
as to pass it to the "grep" command and search for specific words.

...I have searched in the command line options but found nothing...
any ideas on how to accomplish this?

Cheers,

Jorge.

spectre -help <keyword> | more

Regards,
Marc
 
spectrallypure wrote:
Hi all!
Does anybody know if its possible to force Spectre in command line
mode to show the help contents without the automatic page scrolling?

spectre -help <keyword

would automaticallly wait for the user input to scroll through the
help contents, which prevents the text output from being passed to
other commands. The help pages for some topics can be rather long, and
very often I would like to have the text being output in one chunk so
as to pass it to the "grep" command and search for specific words.

...I have searched in the command line options but found nothing...
any ideas on how to accomplish this?
Workoround: redirect the output to a file an play with it:

$ spectre -help bsim3v3 > spectre-help.bsim3v3

$ cat spectre-help.bsim3v3

$ grep channel spectre-help.bsim3v3

etc.

PN
 
spectrallypure wrote:
Hi all!
Does anybody know if its possible to force Spectre in command line
mode to show the help contents without the automatic page scrolling?

spectre -help <keyword

would automaticallly wait for the user input to scroll through the
help contents, which prevents the text output from being passed to
other commands. The help pages for some topics can be rather long, and
very often I would like to have the text being output in one chunk so
as to pass it to the "grep" command and search for specific words.

...I have searched in the command line options but found nothing...
any ideas on how to accomplish this?

Cheers,

Jorge.
Jorge,

Typically a pager formats the output ONLY if the standard output is a terminal. This means that if
you redirect the output to anything (a file or a pipe) it will simply output the text without any
formatting.

Try 'spectre -h | cat' to observe that.

The bottomline is, you can pipe the output of spectre to grep without any problem.

Cheers,
Stéphane
 
Typically a pager formats the output ONLY if the standard output is a terminal.
I didn't know it! ...should have tried piping directly before
posting... sorry! :)

Thanks everybody!

Cheers,
Jorge.
 

Welcome to EDABoard.com

Sponsor

Back
Top