Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Don't print the crazy offset!

  1. Jun 18, 2006 #1
    Hello people,
    Is there any way to prompt hexdump to print just the hex values of the file without offsets, f.ex normally when you hex your file it looks something like this:

    0000b10 ec33 b3b2 4b3b e293 7ef9 f73e 3333 9ce7

    and we wanna make it:

    ec33 b3b2 4b3b e293 7ef9 f73e 3333 9ce7

    Any ideas?

  2. jcsd
  3. Jun 18, 2006 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You could just run the output through another program that reformats it the way you want. It would take probably 5 minutes to write a C program to do it, and even faster in a scripting language like python or perl, or to use sed if you know them.

    (Yes, this is a plug for learning a scripting language. :biggrin:)

    But, in this case, there is already a program to do essentially what you want: colrm.
    Last edited: Jun 18, 2006
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Don't print the crazy offset!
  1. PDF and printing (Replies: 13)

  2. Print Remainder (Replies: 3)

  3. Printing a string (Replies: 4)

  4. Pretty Print (Replies: 2)

  5. Printing Documents (Replies: 2)