0

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?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
jcubic
  • 9,932

1 Answers1

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