[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Script polluted by DOS formatting



A script downloaded to a desktop i386/etch/gnome from Amber web site, edited on
the desktop with gnome text editor, then sent scp to a computing machine amd64,
turned out to be polluted by DOS formatting.

The computing program was prevented from reading the polluted lines.

I tried

dos2unix scriptfilename

which failed to clean the script. Opening the script with vim did not reveal
the problem. It was only

od -c scriptfilename > od.dmp

that revealed non printing characters, octal 302 followed by octal 240 at each
script line.

I was unfamiliar with such affairs and wonder about the origin of the
pollution. The desktop has wine installed (for a Windows-based database that
finds no efficient substitute in unix) and may be (don't remember) the database
had been launched before editing of the said script.

1) Is wine likely to have caused the pollution?

2) Is the above dos2unix command correctly issued?

Thanks

francesco pietra


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting 



Reply to: