Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Saturday 02 October 2021 16:02:52 Brian wrote: > On Sat 02 Oct 2021 at 15:43:33 -0400, Gene Heskett wrote: > > On Saturday 02 October 2021 11:13:09 Brian wrote: > > > On Fri 01 Oct 2021 at 17:32:37 -0400, Gene Heskett wrote: > > > > On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: > > >

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Jude DaShiell
Anyone tried ansifilter -i bash.1 -o bash.2 yet? On Sat, 2 Oct 2021, Gene Heskett wrote: > On Saturday 02 October 2021 11:13:09 Brian wrote: > > > On Fri 01 Oct 2021 at 17:32:37 -0400, Gene Heskett wrote: > > > On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: > > > > [...] > > > > > >

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Brian
On Sat 02 Oct 2021 at 15:43:33 -0400, Gene Heskett wrote: > On Saturday 02 October 2021 11:13:09 Brian wrote: > > > On Fri 01 Oct 2021 at 17:32:37 -0400, Gene Heskett wrote: > > > On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: > > > > [...] > > > > > > We still don't know why you want

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Saturday 02 October 2021 11:13:09 Brian wrote: > On Fri 01 Oct 2021 at 17:32:37 -0400, Gene Heskett wrote: > > On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: > > [...] > > > > We still don't know why you want this. I guess we'll never know. > > > > We apparently don't speak the same

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Brian
On Sat 02 Oct 2021 at 16:51:59 +0100, Eric S Fraga wrote: > On Saturday, 2 Oct 2021 at 15:39, Brian wrote: > > BTW, I do not think gv accepts an output piped to it. > > Well, it does on my Debian system. YMMV, of course. > > I did try the command before posting. ;-) Eyesight. Many apologies.

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Eric S Fraga
On Saturday, 2 Oct 2021 at 15:39, Brian wrote: > BTW, I do not think gv accepts an output piped to it. Well, it does on my Debian system. YMMV, of course. I did try the command before posting. ;-) -- Eric S Fraga via Emacs 28.0.60 & org 9.5 on Debian 11.0

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Eric S Fraga
On Saturday, 2 Oct 2021 at 09:03, Greg Wooledge wrote: > This appears to produce a Postscript stream. Yes; I was basing my post on the specified need for "dead wood" output. -- Eric S Fraga via Emacs 28.0.60 & org 9.5 on Debian 11.0

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Brian
On Fri 01 Oct 2021 at 17:32:37 -0400, Gene Heskett wrote: > On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: [...] > > We still don't know why you want this. I guess we'll never know. > > We apparently don't speak the same dialect of english Greg. I wanted a > dead tree (aka paper)

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Brian
On Sat 02 Oct 2021 at 09:03:39 -0400, Greg Wooledge wrote: > On Sat, Oct 02, 2021 at 12:45:07PM +0100, Eric S Fraga wrote: > > man pages are written in troff/nroff (which can be compiled using groff) > > using the man style. You can do the following, for instance: > > > > gunzip -c

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Greg Wooledge
On Sat, Oct 02, 2021 at 12:45:07PM +0100, Eric S Fraga wrote: > man pages are written in troff/nroff (which can be compiled using groff) > using the man style. You can do the following, for instance: > > gunzip -c /usr/share/man/man1/chmod.1.gz | groff -man | lp > > (or replace "lp" with "gv -"

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Greg Wooledge
On Sat, Oct 02, 2021 at 07:23:45AM -0400, Gene Heskett wrote: > On Friday 01 October 2021 22:52:59 David Wright wrote: > > Like others, I tried to guess what Gene really wanted (I can barely > > believe the answer) and to come up with a suitable method. I also > > tried out others' suggestions. We

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Saturday 02 October 2021 07:45:07 Eric S Fraga wrote: > man pages are written in troff/nroff (which can be compiled using > groff) using the man style. You can do the following, for instance: > > gunzip -c /usr/share/man/man1/chmod.1.gz | groff -man | lp > > (or replace "lp" with "gv -" to

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Eric S Fraga
man pages are written in troff/nroff (which can be compiled using groff) using the man style. You can do the following, for instance: gunzip -c /usr/share/man/man1/chmod.1.gz | groff -man | lp (or replace "lp" with "gv -" to see on screen). Replace chmod with specific command and note that

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Friday 01 October 2021 22:52:59 David Wright wrote: > On Fri 01 Oct 2021 at 20:53:26 (-0400), Greg Wooledge wrote: > > On Fri, Oct 01, 2021 at 05:44:41PM -0700, Fred wrote: > > > man command | col -b > command.txt > > > > Curious. > > > > unicorn:~$ man ls > ls1 > > unicorn:~$ man ls | col -b

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Friday 01 October 2021 20:53:26 Greg Wooledge wrote: > On Fri, Oct 01, 2021 at 05:44:41PM -0700, Fred wrote: > > man command | col -b > command.txt > > Curious. > > unicorn:~$ man ls > ls1 > unicorn:~$ man ls | col -b > ls2 > unicorn:~$ ls -l ls1 ls2 > -rw-r--r-- 1 greg greg 8299 Oct 1 20:49

Re: What do we have that will save a manpage as we see it on-screen

2021-10-02 Thread Gene Heskett
On Friday 01 October 2021 20:44:41 Fred wrote: > On 10/1/21 1:59 PM, Gene Heskett wrote: > > On Friday 01 October 2021 12:34:16 Larry Martell wrote: > > > > man -t /path/to/man/file >file.txt > > groff -mandoc /path/to/man/file > file.txt, both quadrupled the size > > with lots more markup. > > >

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread David Wright
On Fri 01 Oct 2021 at 20:53:26 (-0400), Greg Wooledge wrote: > On Fri, Oct 01, 2021 at 05:44:41PM -0700, Fred wrote: > > man command | col -b > command.txt > > Curious. > > unicorn:~$ man ls > ls1 > unicorn:~$ man ls | col -b > ls2 > unicorn:~$ ls -l ls1 ls2 > -rw-r--r-- 1 greg greg 8299 Oct 1

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Greg Wooledge
On Fri, Oct 01, 2021 at 05:44:41PM -0700, Fred wrote: > man command | col -b > command.txt Curious. unicorn:~$ man ls > ls1 unicorn:~$ man ls | col -b > ls2 unicorn:~$ ls -l ls1 ls2 -rw-r--r-- 1 greg greg 8299 Oct 1 20:49 ls1 -rw-r--r-- 1 greg greg 7745 Oct 1 20:49 ls2 Glancing at the diff -u

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Fred
On 10/1/21 1:59 PM, Gene Heskett wrote: On Friday 01 October 2021 12:34:16 Larry Martell wrote: man -t /path/to/man/file >file.txt groff -mandoc /path/to/man/file > file.txt, both quadrupled the size with lots more markup. Not what I want obviously. Thanks Larry. Cheers, Gene Heskett. man

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 17:17:53 Greg Wooledge wrote: > On Fri, Oct 01, 2021 at 05:05:44PM -0400, Gene Heskett wrote: > > On Friday 01 October 2021 12:43:00 Cindy Sue Causey wrote: > > > man lilo > manLILO > > > > did exactly what I wanted it to do. Thank you Cindy. ;o) > > On Fri, Oct 01,

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Greg Wooledge
On Fri, Oct 01, 2021 at 05:21:54PM -0400, Gene Heskett wrote: > What I wanted on dead tree, was exactly what I see on screen. > With the manpage markup gobbled up, leaving only the text I see on screen > when I type man 9 filename. So you wanted to print a man page on paper, but you wanted it

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 17:01:56 Greg Wooledge wrote: > On Fri, Oct 01, 2021 at 04:59:25PM -0400, Gene Heskett wrote: > > On Friday 01 October 2021 12:34:16 Larry Martell wrote: > > > > man -t /path/to/man/file >file.txt > > groff -mandoc /path/to/man/file > file.txt, both quadrupled the size >

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 15:47:18 Greg Wooledge wrote: > On Fri, Oct 01, 2021 at 12:24:50PM -0400, Gene Heskett wrote: > > With the man markup subtracted, so what we save is exactly what we > > see. > > If you want to reproduce what you see when you type "man bash" (just > as an example), you

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Greg Wooledge
On Fri, Oct 01, 2021 at 05:05:44PM -0400, Gene Heskett wrote: > On Friday 01 October 2021 12:43:00 Cindy Sue Causey wrote: > > man lilo > manLILO > did exactly what I wanted it to do. Thank you Cindy. ;o) On Fri, Oct 01, 2021 at 05:07:37PM -0400, Gene Heskett wrote: > On Friday 01 October 2021

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 13:58:20 Lee wrote: > On 10/1/21, Gene Heskett wrote: > > Greetings all; > > > > With the man markup subtracted, so what we save is exactly what we > > see. > > Try the "--ascii" option - eg > man --ascii man > /tmp/man.txt > > Regards, > Lee Cindy's suggestion

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 12:43:00 Cindy Sue Causey wrote: > On 10/1/21, Gene Heskett wrote: > > Greetings all; > > > > With the man markup subtracted, so what we save is exactly what we > > see. > > > > Thanks. > > > > Cheers, Gene Heskett. > > Hi, Gene. I'm not sure if I'm understanding

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Greg Wooledge
On Fri, Oct 01, 2021 at 04:59:25PM -0400, Gene Heskett wrote: > On Friday 01 October 2021 12:34:16 Larry Martell wrote: > > man -t /path/to/man/file >file.txt > groff -mandoc /path/to/man/file > file.txt, both quadrupled the size with > lots more markup. > > Not what I want obviously. There is

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
On Friday 01 October 2021 12:34:16 Larry Martell wrote: man -t /path/to/man/file >file.txt groff -mandoc /path/to/man/file > file.txt, both quadrupled the size with lots more markup. Not what I want obviously. Thanks Larry. Cheers, Gene Heskett. -- "There are four boxes to be used in defense

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Greg Wooledge
On Fri, Oct 01, 2021 at 12:24:50PM -0400, Gene Heskett wrote: > With the man markup subtracted, so what we save is exactly what we see. If you want to reproduce what you see when you type "man bash" (just as an example), you would need to *retain* the "man markup", not subtract it. So, right off

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Jude DaShiell
There's tee that can be used just pipe the man page through it and into a text file. On Fri, 1 Oct 2021, Lee wrote: > On 10/1/21, Gene Heskett wrote: > > Greetings all; > > > > With the man markup subtracted, so what we save is exactly what we see. > > Try the "--ascii" option - eg > man

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Lee
On 10/1/21, Gene Heskett wrote: > Greetings all; > > With the man markup subtracted, so what we save is exactly what we see. Try the "--ascii" option - eg man --ascii man > /tmp/man.txt Regards, Lee

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Cindy Sue Causey
On 10/1/21, Gene Heskett wrote: > Greetings all; > > With the man markup subtracted, so what we save is exactly what we see. > > Thanks. > > Cheers, Gene Heskett. Hi, Gene. I'm not sure if I'm understanding correctly, but.. I do this (am using the LILO package as an example): man lilo >

Re: What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Larry Martell
On Fri, Oct 1, 2021 at 12:25 PM Gene Heskett wrote: > > Greetings all; > > With the man markup subtracted, so what we save is exactly what we see. Maybe one of these man option will work for you: -t, --troff Use groff -mandoc to format the manual page to stdout. This option

What do we have that will save a manpage as we see it on-screen

2021-10-01 Thread Gene Heskett
Greetings all; With the man markup subtracted, so what we save is exactly what we see. Thanks. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the