[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dando formato a man



El lun, 19-09-2005 a las 17:28 -0300, Emiliano Gonzalez escribió:
> Estuve tratando de exportar el contenido de algunos man para poder 
> leerlos tranquilo, ya sea en .ps, .pdf o lo que fuere.
> Estuve leyendo los manuales  (man man)
> realmente hice mil intentos, hasta con el xdvi, pero no hay caso. 
> Alguien podrá sacarme esta duda?
> Mil gracias, como siempre

tenes man2html ( apt-get install man2html)
o si no
 yo en AIX hice este scriptcito 
-------------------------------------------------------------------------------------------------------------
#!/bin/sh
ARGS=2
EXIT_BADARG=65

if [ $# != $ARGS ]
then
        echo "Uso: `basename $0` pagina_de_manual archivo_de_texto"
        exit $EXIT_BADARG
fi

MANPAGE=$1
TEXTO=$2
`man $MANPAGE | col -xb > $TEXTO`
ok=$?
if [ $ok != 0 ]
then
        echo "Hubo un error. Nro de error $ok"
        exit $ok
else
        exit 0
fi
else
        echo "No existe la pagina de manual de  $MANPAGE"
        exit 1
fi
---------------------------------------------------------------------------------------
> 
> 
-- 
Angel Claudio Alvarez
Usuario Linux Registrado 143466
GPG Public Key en http://pgp.mit.edu
key fingerprint = 3AED D95B 7E2D E954 61C8  F505 1884 473C FC8C 8AC4

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: