Paul Eggert wrote:
"Paul A. Clarke" <[EMAIL PROTECTED]> writes:
Is there any interest in adding a flag to od to support byteswapping?

Would "dd conv=swab | od" suffice?

No. "dd conv=swab" only swaps byte pairs, thus 32bit or 64bit structured data will not appear "correctly" unswapped:

(GenuineIntel)# dd conv=swab if=endiana | od -tx4
0+1 records in
0+1 records out
0000000 63646162
0000004

(Power5)> od -tx4 endiana
0000000 61626364
0000004

However, you have a point in that perhaps this enhancement should instead be targeted at the "dd" command instead of "od".

Thoughts?
Regards,
Paul


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to