When I ssh to my Linux servers and use grep like this:
grep 'timeout exceeded' logfile | less
word wrap does not work.
However, if I use the same command but use less first, like this:
less logfile | grep 'timeout exceeded'
the lines wrap. I am not sure what the problem is or if this is normal or not. But it happens regardless of the ssh client I use. I have tried both putty and an Ubuntu client. How can I fix this?