Discussion:
Linux man files to text
(too old to reply)
ivan
2015-04-04 12:31:46 UTC
Permalink
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.

ivan
--
Mr. G
2015-04-04 17:40:50 UTC
Permalink
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Can you not just redirect Simpleman.cmd to a file, or edit Simpleman.cmd to
output to a file instead of stdout.

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
ivan
2015-04-04 23:15:10 UTC
Permalink
Post by Mr. G
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Can you not just redirect Simpleman.cmd to a file, or edit Simpleman.cmd to
output to a file instead of stdout.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
As far as I can see there is no way of getting CAWF (the engine used
in simpleman) to do anything other than display the output. Less is
used to page through the output.

ivan
--
Dave Yeo
2015-04-05 01:45:59 UTC
Permalink
Post by ivan
Post by Mr. G
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Can you not just redirect Simpleman.cmd to a file, or edit Simpleman.cmd to
output to a file instead of stdout.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
As far as I can see there is no way of getting CAWF (the engine used
in simpleman) to do anything other than display the output. Less is
used to page through the output.
Just use cawf, cawf.exe man.1 > man.txt. Only problem is that cawf
doesn't support all the directives but it'll work well enough.
Dave
ivan
2015-04-05 12:14:21 UTC
Permalink
Post by Dave Yeo
Post by ivan
Post by Mr. G
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Can you not just redirect Simpleman.cmd to a file, or edit Simpleman.cmd to
output to a file instead of stdout.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
As far as I can see there is no way of getting CAWF (the engine used
in simpleman) to do anything other than display the output. Less is
used to page through the output.
Just use cawf, cawf.exe man.1 > man.txt. Only problem is that cawf
doesn't support all the directives but it'll work well enough.
Dave
Thanks Dave. I tried that and the result is not good enough for what
is needed (there were a lot of 'xx not known' ).

ivan
--
Mr. G
2015-04-05 01:47:03 UTC
Permalink
Post by ivan
Post by Mr. G
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Can you not just redirect Simpleman.cmd to a file, or edit Simpleman.cmd to
output to a file instead of stdout.
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
As far as I can see there is no way of getting CAWF (the engine used
in simpleman) to do anything other than display the output. Less is
used to page through the output.
ivan
I was unaware Simpleman invoked cawf, sorry.

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
Allodoxaphobia
2015-04-04 22:34:55 UTC
Permalink
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
man man | col -b

Jonesy
--
Marvin L Jones | Marvin | W3DHJ | linux
38.238N 104.547W | @ jonz.net | Jonesy | OS/2
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm
ivan
2015-04-04 23:07:09 UTC
Permalink
On Sat, 4 Apr 2015 22:34:55 UTC, Allodoxaphobia
Post by Allodoxaphobia
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
man man | col -b
Jonesy
Does that work on OS/2?


ivan
--
Dave Yeo
2015-04-05 01:43:04 UTC
Permalink
Post by ivan
On Sat, 4 Apr 2015 22:34:55 UTC, Allodoxaphobia
Post by Allodoxaphobia
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
man man | col -b
Jonesy
Does that work on OS/2?
Yes, once you have man working.
Dave
ivan
2015-04-05 12:16:14 UTC
Permalink
Post by Dave Yeo
Post by ivan
On Sat, 4 Apr 2015 22:34:55 UTC, Allodoxaphobia
Post by Allodoxaphobia
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
man man | col -b
Jonesy
Does that work on OS/2?
Yes, once you have man working.
Dave
I gathered that might be the case but I have not found a version of
man for OS/2. Is there one and if so where can I get a copy?

ivan
--
Dave Yeo
2015-04-05 16:39:28 UTC
Permalink
Post by ivan
Post by Dave Yeo
Post by ivan
On Sat, 4 Apr 2015 22:34:55 UTC, Allodoxaphobia
Post by Allodoxaphobia
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
man man | col -b
Jonesy
Does that work on OS/2?
Yes, once you have man working.
Dave
I gathered that might be the case but I have not found a version of
man for OS/2. Is there one and if so where can I get a copy?
You can search for gnuman on Hobbes or as far as I know the most up to
date version is at http://homepage1.nifty.com/jsawa/os2/linux/man.htm.
Read the readme, most of the binaries have newer versions available and
as long as they are binaries (not DLLs) you can use kLIBC versions
including those installed by YUM/RPM.
Dave
A.D. Fundum
2015-04-05 23:02:50 UTC
Permalink
a simple way of converting man files to text?
Perfectly? man2txt.zip (@ Hobbes), or man2html (which appears to be a
Perl script)? I'm not "into Unix", so I'm not aware of the possible
destruction of formatted text by simple, OS/2-based converters.

Derived, general question: what about a conversion to INF (actually a
IPF source code file, to be compiled with the OS/2 Toolkit's
IPFC.EXE)?


--
Jaiya
2015-04-06 20:31:25 UTC
Permalink
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Like this?

$ man -P cat man > text_file
ivan
2015-04-06 21:46:42 UTC
Permalink
Post by Jaiya
Post by ivan
Does anyone know if there is a simple way of converting man files to
text? I am thinking of something like Alex Taylor's SIMPLEMAN.CMD
except instead of displaying the man files it produces a text file.
ivan
Like this?
$ man -P cat man > text_file
I assume that will work when I manage to get emx-man and all its
dependances set up. Then will come the fun part because I will have
to pack it all up and send it off to my friend that wants to do the
work.

I am beginning to wonder if it would be better to try and make a
minimal linux CD (assuming I can find a version that can read and
write to an HPFS partition) and send her that.

ivan
--
Dave Yeo
2015-04-06 23:52:27 UTC
Permalink
Post by ivan
I am beginning to wonder if it would be better to try and make a
minimal linux CD (assuming I can find a version that can read and
write to an HPFS partition) and send her that.
Ubuntu and Mint (and perhaps all Debian derived dists) can still mount
and read HPFS. At that it works better then JFS where Linux complains
about permissions.
Dave

Loading...