LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-07-2012, 06:00 PM   #1
jao_madn
Member
 
Registered: Jun 2010
Posts: 47

Rep: Reputation: 0
how to perform a hexdump using dd from start point to end point


hi,

I would like to ask or is it possible to dump a hex using dd from starting point to end point just like the "xxd -s 512 -l 512 <bin file>"

I know the redirect hexdump -C but i can't figure it out the combination options of dd.

Hope someone can share their knowledge..

Thanks in advance
 
Old 04-08-2012, 11:08 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You don't need dd to do that:

man hexdump
Code:
     -n length   Interpret only length bytes of input.
     -s offset   Skip offset bytes from the beginning of the input.  By
                 default, offset is interpreted as a decimal number.  With a
                 leading 0x or 0X, offset is interpreted as a hexadecimal num-
                 ber, otherwise, with a leading 0, offset is interpreted as an
                 octal number.  Appending the character b, k, or m to offset
                 causes it to be interpreted as a multiple of 512, 1024, or
                 1048576, respectively.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to perform floating point operations in linux kernel? raulapati Programming 1 04-07-2011 06:25 AM
Gnome Desktop makes 10 point font look like 64 point - how do I fix it? TonyC Linux - Desktop 5 03-03-2009 12:22 AM
LXer: Set up a SSH-based point to point connection LXer Syndicated Linux News 0 11-30-2008 09:50 PM
telnet not work in Point to Point connected FC6 boxes techteacher Linux - Networking 4 05-06-2007 09:50 AM
From an end users point of view, What is Solaris. Optyx Solaris / OpenSolaris 7 03-07-2004 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration