Can't break the line in the terminal

I wanted to output the man page to a text file.

root@uddhav-HP-Pavilion-g6-Notebook-PC:~# man tcpdump >>a.txt /* I can output here */
root@uddhav-HP-Pavilion-g6-Notebook-PC:~# man tshark >>a.txt /* I can't output here */

      

Mistake:

<standard input>:1068: warning [p 14, 3.5i]: can't break line
<standard input>:1088: warning [p 14, 8.0i]: can't break line

      

I can read the manual page on the internet. But sometimes I don't have access to the Internet and I have to be able to read the manual page to solve everything. I know I can read the man page with help man tshark

, but I wanted to output the man page to a text file and then read through a graphics editor.

I believe this error is coming because there is an error in the tshark binary. But I'm just wondering if any of you guys have solved this already?

Note. I also tried with a regular user. The same thing happens .tshark is the command line version of Wireshark. You must first install tshark usingsudo apt-get install tshark

+3


source to share


1 answer


This comment below from @JNevill solved the problem.

It looks like it has something to do with the MANWIDTH variable. You can read more about this in the man man page. Try pumping this variable to something high before redirecting / piping: MANWIDTH = 100 man tshark> yourfile



After I adjusted the width of the terminal with MANWIDTH=1000 man tshark > a.txt

, I found no errors.

+7


source







All Articles