Less -u or –underline-special option causes backspaces and carriage returns to be treated as printable characters.
Less -U or –UNDERLINE-SPECIAL causes backspaces, tabs, carriage returns and “formatting characters” (as defined by Unicode) to be treated as control characters.
1 2 3 4 5 6 7 8 9 10 |
## create a file echo -e "1\t2 2\b 3 4\c4" > myfile ## less -u or --underline-special option less -u myfile ## returns 1 2 3 4 ## less -U or --UNDERLINE-SPECIAL option less -U myfile ## returns 1^I2 2^H 3 4 rm myfile |