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 see, if it is a "good" HP-UX or Linux file?



ItaniumR Architecture for Programmers. Understanding 64-Bit Processors and EPIC Principles
ItaniumR Architecture for Programmers. Understanding 64-Bit Processors and EPIC Principles
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net