Exporting Man Pages
jbinpg at shaw.ca
Mon Nov 24 16:59:24 UTC 2003
On Tue, Nov 25, 2003 at 01:30:50AM +0900, SEKINE Tatsuo wrote:
> From: Øyvind Lode <o-lode at online.no>
> Date: Mon, 24 Nov 2003 15:45:51 +0100
> > Ex: I want to export the vsftpd man pages to a file.
> > I did that with the following command:
> > # man vsftpd.conf > vsftpd.txt
> > This worked very good and I can now read the exported file (vsftpd.txt)
> > with cat and vi.
> > It appears exactly like it does when reading from the man pages command.
> > But when I transer the file to a Windows box (XP) it doesn't look good
> > at all.
> > Some text appear "crypted" when reading in notepad so the file is hard
> > to read and some text is not readable at all.
> > Some tips?
> Probably code 0x08 (which is used to enbold characters and
> make underline) cause "crypted" text.
> You are able to use "col" command to get rid of them.
> If you transfer the text with samba, try following:
> $ man foo | col -b | unix2dos > foo.txt
> If you transfer the text with FTP, try following
> $ man foo | col -b > foo.txt
> and transfer it in ASCII mode.
> With ASCII mode, FTP server transfer CR->CR+LF automatically.
Or use the best of breed ckermit which handles all conversions on its
mailto: jbinpg at shaw.ca
More information about the fedora-list