Hi, I'm looking for some lib or tool to render text with escape squence chars in a text file. I dont know how to call this, but here is a example:
~$ echo -e "abc\vdef"
abc
def
~$
~$ echo -e "abc\vdef" > /tmp/xxxxx
~$ vi /tmp/xxxxx
I got abc^Kdef on screen.
so i'm searching some tool that can do this for me:
~$ sometool /tmp/xxxxx > /tmp/yyyyy
~$ vi /tmp/yyyyy
I can get
abc
def
in vi window.
\v is just a example, I need convert \v, \b, \f, etc.
to harithski: but what I want is:
$~/:sometool /tmp/xxxxx > /tmp/yyyyy
in python
>>> f=open('/tmp/yyyyyy').readlines()
>>> f[0]
>>> ['abc\n def']
which has three space between \n and def