Inspecting an HP-UX or Linux file

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 ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.