I'm running man in non interactive mode from bash and I'm displaying the result on the webpage. I have number of character per line calculated on a page, how can I inform the man command about number of characters per line?
Asked
Active
Viewed 120 times
1 Answers
2
If you're using man
on Linux to generate the output (e.g. man command > output-file
) then you can set MANWIDTH to the value you'd like.
MANWIDTH=120 man tr > tr.txt

Jeff Schaller
- 67,283
- 35
- 116
- 255
groff
how to do it by hand. – Jeff Schaller Jan 08 '16 at 21:01