Vi'ing the script would usually show any control characters (for example ^M in a dos-origin file). If not, perhaps you could do a unix2dos <filename> <newfile> and then vi <newfile> in the hope that this would show the characters. Good luck.
Depending on the size of the file, you could try a hex dump of it with
od -xc filename | more
It's not that easy to read, but if you cut and paste the lines from your script into a new file first it might make it a bit easier. The hex dump will show you the values of any dodgy characters in the file.
Regards,
LHLTech
IBM Certified Specialist - AIX System Support
Halfway through CATE exams!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.