Hello All,
I have a DOS file which I run a DOS 2 UNIX utility on. When run from Solaris, I can view the file perfectly. But, when run from linux, I see a bunch of junk(^@) at the beginning of every line in the file. Does anyone know the cause of this?
COMMAND TO CONVERT:
tr -d '\015\032' <"$IN" >"$OUT"
FILE EXAMPLE:
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Ths is what it looks like when i open file with vi
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^each line has this junk in it
I used 'cat -tv' on the file before converting from dos to unix format in Solaris. And I can see the junk(^@) characters. But, the junk characters disappear in Solaris after running 'tr' on the file. The junk characters do not disappear in RHEL after i run 'tr' on them. I am only using 'tr' to convert my files.
The problem is that we have an automated process which processes these files. So, i need to find out why we can process successfully in Solaris, but not in RHEL. There are several ways to get rid of this data. But, what is diff between 'tr' in Solaris and RHEL?