LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   printing an info file (https://www.linuxquestions.org/questions/linux-general-1/printing-an-info-file-194196/)

ttilt 06-16-2004 11:37 AM

printing an info file
 
Hi, I was just wondering if there's a way to print an info file? For example I want to create a gdb manual by printing the stuff in the gdb.info, instead of having to type 'info gdb' at the computer everytime i want to read about it.

Thanks

bigrigdriver 06-16-2004 11:48 AM

To print info pages:
In this example, using tar info pages.

cp /usr/share/info/tar.info.gz /home/<user>

Copy the info page to another location to avoid breaking
your on-line documentation.

gunzip /home/<user>/tar.info.gz

After decompressing the file, use a2ps to convert to PostScript.

a2ps tar.info

This produces a PostScript formatted file called tar.info.
Open in your favorite editor and print from there.

ttilt 06-16-2004 01:29 PM

After uncompressing the info file i ran the a2ps and here's what i got:

[ttilt@localhost download]$ a2ps gdb.info
[gdb.info (binary): ignored]
[No output produced]


All times are GMT -5. The time now is 10:42 AM.