You are not logged in.
Well the problem is whenever i redirect the output of man pages and open the output file in gedit or gvim, it appears somewhat like this
But when I try viewing in terminal it appears fine
so, I assume it has something todo with encoding but I can't seem to figure out how to fix it. So can anyone help me with this please?
Thanks in advance
Last edited by ttyX (2008-11-11 12:17:02)
Offline
so, I assume it has something todo with encoding
Not sure about encoding. The problem is that the man pages are formatted text, catting them or redirecting them to file is equivalent to maintain format information in the output. The only program I know that is able to show the formatted text is less, sorry.
[Edit] It was interesting also for me, so at this FAQ I found a simple solution:
$ man bash | col -b > bash_manpage.txt
HTH.
Last edited by syntaxerrormmm (2008-11-11 08:46:12)
syntaxerrormmm - Homepage
Offline
ttyX wrote:so, I assume it has something todo with encoding
Not sure about encoding. The problem is that the man pages are formatted text, catting them or redirecting them to file is equivalent to maintain format information in the output. The only program I know that is able to show the formatted text is less, sorry.
[Edit] It was interesting also for me, so at this FAQ I found a simple solution:
$ man bash | col -b > bash_manpage.txt
HTH.
Wow that really did the job thanks a lot
Offline