/
Commands that temporarily prevent terminal wrapping
Commands that temporarily prevent terminal wrapping
PROBLEM DESCRIPTION
I don't want to change the terminal option, so that the string output to the terminal with command or server settings will not be wrapped automatically.
RESOLUTION
You can use the 'less -S' command or the 'cut' command.
$ cat [filename] | less -S $ cat [filename] | cut -c -tput cols
Related content
Terminal _ Advanced
Terminal _ Advanced
More like this
Home/End Keys in the less Command
Home/End Keys in the less Command
More like this
Xshell Local Commands
Xshell Local Commands
More like this
xsh.Screen
xsh.Screen
More like this
xsh.Screen
xsh.Screen
More like this
Connection _ TELNET
Connection _ TELNET
More like this