Recently my colleague N provided me a script converting Desmond Viparr1 format into Vippar3 format. When I tried to run it under my Linux OS, it always claimed:
: command not foundine 30:
awk: cmd. line:1: fatal: cannot open file `XJUNKX' for reading (No such
file or directory)
awk: cmd. line:1: fatal: cannot open file `XJUNKX1' for reading (No such
file or directory)
awk: cmd. line:1: fatal: cannot open file `XJUNKX2' for reading (No such
file or directory)
awk: cmd. line:1: fatal: cannot open file `XJUNKX3' for reading (No such
file or directory)
I turned to N for helps, and he told that he tested it again and it worked fine under his OS. After an hour checking, we finally found the problem: N wrote those script under Windows instead of Linux, and it introduced many
Trailing characters: ^M
which was regarded as blank characters Under Linux. That's why the first line of the log claimed:
: command not foundine 30:
After finding the reasons, the scripts were processed by command dos2unix, and they worked fine now.