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

Re: Script polluted by DOS formatting



William Pursell wrote:
Francesco Pietra wrote:

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


When you open the file in vim, type:
:set fileformat

It will probably report:
fileformat=dos

Then type
:set fileformat=unix

When you write the file, the <CR><NL> dos style line terminators
will be replaced by <CR> only.

I suppose you mistyped "<LF> only".

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!



Reply to: