Home » Infrastructure » Unix » Junk Character in VI editor
Junk Character in VI editor [message #221459] Mon, 26 February 2007 22:11 Go to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Hi.
I am getting "^[[H^[[J" when i open a file!!

I am running a shell script, o/p i am forwarding to a file. When i open a file in the begging i am getting the above mentioned characters...
please assist me.

SunOs 5.8

Thanks,
Shahnaz.
Re: Junk Character in VI editor [message #221997 is a reply to message #221459] Thu, 01 March 2007 07:37 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Any idea about this issue friends?

Thanks,
Shahnaz.
Re: Junk Character in VI editor [message #222089 is a reply to message #221997] Thu, 01 March 2007 13:22 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
What does your shell script do ?
Re: Junk Character in VI editor [message #222178 is a reply to message #222089] Fri, 02 March 2007 03:17 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Hi.
I am just printing in the shell script...

let us say shell script is abc.sh

i am just doing like ./abc.sh>abc.log

when i open abc.log
i can see those characters.

Thanks,
Shahnaz.
Re: Junk Character in VI editor [message #222262 is a reply to message #221459] Fri, 02 March 2007 09:57 Go to previous messageGo to next message
BlackSwan
Messages: 25046
Registered: January 2009
Location: SoCal
Senior Member
post the results from the following back here
$ od -c abc.log | head
Re: Junk Character in VI editor [message #222464 is a reply to message #222262] Sun, 04 March 2007 23:34 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Hi.
Please have a look at the attachment for the o/p of od -c command

Thanks,
Shahnaz.
  • Attachment: output.txt
    (Size: 0.64KB, Downloaded 352 times)
Re: Junk Character in VI editor [message #223024 is a reply to message #222464] Wed, 07 March 2007 04:11 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Any update about this question?

Thanks,
Shahnaz.
Re: Junk Character in VI editor [message #225362 is a reply to message #221459] Mon, 19 March 2007 14:15 Go to previous messageGo to next message
plshelp
Messages: 205
Registered: January 2007
Senior Member
Hi,

Did you ftp the file from somewhere? If you did ftp in binary mode, you will get junk characters when u open the file in vi editor..
Re: Junk Character in VI editor [message #226074 is a reply to message #225362] Thu, 22 March 2007 08:07 Go to previous message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
No, i haven't done any FTP.
I my script i just used command "clear", because of that it is creating problem.
I just removed clear then it is coming fine.
Tell me what could be the reason?

Thanks,
Shahnaz.
Previous Topic: shell scripting
Next Topic: Veritas Cluster, problem connecting to DB service with virtual IP
Goto Forum:
  


Current Time: Thu Dec 08 10:16:50 CST 2016

Total time taken to generate the page: 0.14039 seconds