is there a way of using less to open a file with no word wrap, ie with horizontal scrolling? Im sure there is but 'man less > grep "wrap"' doesnt seem to bring up anything. Apologies if this is the wrong forum!
Word wrap and side to side scrolling is a function of your terminal, or terminal emulator, not the command outputting text.
Some commands might be sensitive to screen width based on either an environment variable or [tt]stty[/tt] settings. Some of those could be truncating the line to what the expected screen is. I think [tt]vi[/tt] does this since it needs to use the full screen.
Most commands that just stream their input and output (things that can be used in a pipe like more/less, grep, etc) don't care and output an entire line, no matter how long it is.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.