0

I have a file contain these text

abc\v\rdef

if i cat the file in shell mode, it presents like the following. it's correct.

abc
def

if i cat the file in screen mode, it presents like the following. it's wrong.

def

all commands i input was posted

$ cd /tmp
$ cat test.txt
abc
def
$ screen
$ cat test.txt
def

how to let vertical tab display correctly in screen mode?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Gucci Koo
  • 541
  • 4
  • 10

1 Answers1

0

You can use cat -v to display nonprinting characters. See man cat for details.

Another option is to use tr:

tr '\v' '\n' < test.txt
Andrey
  • 2,503
  • 3
  • 30
  • 39