hello
How can i make a man file from a plain text file, what command should use?
thanks
man pages are formatted using troff/groff. You should do a man troff and a man groff.
You can try this agains your txt file, to view it.
groff -Tascii -mm your_file | less
Look at the source from any of the man pages installed.
After formatting the text you can view it in many ways, such as issuing the command against your txt file
nroff -man your_file | less
and even
groff -Tascii -man your_file |less
You can also create various output from your formatted document.
Such as txt, ps, dvi.
groff -Tascii -mm your_file > newfile.txt
groff -Tps -mm your_file > newfile.ps
groff -Tdvi -mm your_file > newfile.dvi
a quick idea you can use to format your text to work with groff.
you can then process this, saving the file to address.2 and issuing;
groff -Tascii -man address.2 | less
let's say, I created a script file named: commandlog
can i use : man commandlog
to show some tips helping the users?
Aha... you are absolutly right...