The various commands, utility programs, and assemblers for HP-UX or Linux have different tolerance levels for variations in file formats, especially the line terminators already mentioned. When you first suspect that a file you have uploaded is not being interpreted correctly, you should use the command od -cx file to display the actual ASCII codes of that file or of a short dummy file prepared and moved similarly. The name of this command derives historically from "octal dump" but we suggest two options to force interpretation of character codes both in their printable form and in hexadecimal (Table 2-3). The special indications \r and \n will be shown for <cr> and <lf>, respectively. Which of those should you see, if it is a "good" HP-UX or Linux file? |