9

Is there any flag to od to make it not output line numbers in the result?

  • It doesn't output line numbers (at least, none of my versions does). It starts each line with a byte offset into the file for that line. Is this what you want to remove? – roaima Mar 27 '15 at 17:14
  • Just try od | cut -b9- to only output from byte 9 on. – choroba Mar 27 '15 at 17:27
12

Assuming you mean the byte offset, from man od

   -A, --address-radix=RADIX
          output format for file offsets.  RADIX is  one  of  [doxn],  for
          Decimal, Octal, Hex or None

so for example od -An file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.