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. :help fileformat for details