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
  • 66,199
  • 35
  • 114
  • 250
jcubic
  • 9,612
  • 16
  • 54
  • 75

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
  • 66,199
  • 35
  • 114
  • 250