“command not foundh” line xxx
“command not foundne” line xxx: syntax error near unexpected token `
This is due to the newline characters used on both systems. We need to replace all occurances of "\r\n" with "\n".
In vi, do the following:
// Change from
:set fileformat=unix
:w
// change back to Carriage Return + Line Feed for DOS
:set fileformat=dos
:w
// writing for apple computers:
:set fileformat=mac
:w
// remove multiple (repeated) Carriage Returns using search and replace
:%s/[^M]$//
:w