C programming question

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Dec 26 20:16:32 UTC 2003


On Fri, 26 Dec 2003, John Wildberger wrote:

> On December 26, 2003 05:29 am, Peter L. Peres wrote:
>
> > od -j 20 -N100 -tx1 /dev/mem
> > Peter
>
> Thanks Peter,
> od -j0 -N100 -tx1 /dev/mem

...

> This does the trick as far as the numbers go, but the location
> indicators are still not right. They should be in incrementsc of 10 and
> not 20 because they count in hex the number of bytes. John

od addresses default to octal. Use -Ax to get hex addresses. As always the
manpage helps ... (od is a very old program).

plp-NSb0HxlTAbs at public.gmane.org:~ > od -Ax -j0 -N100 -w8 -tx1 /dev/random
000000 2f 56 b4 15 48 cd 26 51
000008 02 05 6d 2d 85 0e 5b 02
000010 de bb 45 85 15 6c a7 29
000018 7f e6 09 1e 99 75 46 a7
000020 4d 47 cd d0 3b 7e c8 a4
000028 a0 dc b2 6e 0e 77 f8 8f
000030 8a ca e2 0c 02 b1 00 52
000038 e8 f3 6f 19 da 6a 1b 67
000040 4c c6 81 4a f9 e8 a7 5e
000048 a3 be 4c d9 7d e1 1d 23
000050 1d 88 3d 8b db 41 3d 05
000058 22 bf 94 3b a7 f4 40 89
000060 e1 9f d6 ed
000064

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list