RE: enhancement request for a long word byte swap option for 'dd'

2006-07-03 Thread Mike Lockhart
bug-coreutils@gnu.org Subject: Re: enhancement request for a long word byte swap option for 'dd' Mike Lockhart wrote: > What I'm looking for is an end-to-end swap. e.g. swap f841 to > 41f8 so that 'od' will return 3.100e+01 What options are you using to &#x

RE: enhancement request for a long word byte swap option for 'dd'

2006-07-03 Thread Mike Lockhart
ssage- From: Bob Proulx [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 7:24 PM To: Mike Lockhart Cc: bug-coreutils@gnu.org Subject: Re: enhancement request for a long word byte swap option for 'dd' Mike Lockhart wrote: > What I'm looking for is an end-to-end swap. e.

Re: enhancement request for a long word byte swap option for 'dd'

2006-06-30 Thread Bob Proulx
Mike Lockhart wrote: > What I'm looking for is an end-to-end swap. e.g. swap f841 to > 41f8 so that 'od' will return 3.100e+01 What options are you using to 'od'? > I can write a byte-swap function in awk, but I can't translate the > floats into something I can understand - it would

RE: enhancement request for a long word byte swap option for 'dd'

2006-06-30 Thread Mike Lockhart
:08 PM To: Mike Lockhart Cc: bug-coreutils@gnu.org Subject: Re: enhancement request for a long word byte swap option for 'dd' Mike Lockhart wrote: > To avoid endian issues, all our output binary files are written > big-endian. Binary data files need a defined format and one is as g

RE: enhancement request for a long word byte swap option for 'dd'

2006-06-30 Thread Mike Lockhart
y, June 29, 2006 11:01 PM To: Mike Lockhart Cc: bug-coreutils@gnu.org Subject: Re: enhancement request for a long word byte swap option for 'dd' "Mike Lockhart" <[EMAIL PROTECTED]> writes: > For 4-byte words (floats, long integers), however, this doesn't work. > >

Re: enhancement request for a long word byte swap option for 'dd'

2006-06-29 Thread Bob Proulx
Mike Lockhart wrote: > To avoid endian issues, all our output binary files are written > big-endian. Binary data files need a defined format and one is as good as the other. Depending upon your point of view little endian machines seem to be more popular these days though. I actually think that

Re: enhancement request for a long word byte swap option for 'dd'

2006-06-29 Thread Paul Eggert
"Mike Lockhart" <[EMAIL PROTECTED]> writes: > For 4-byte words (floats, long integers), however, this doesn't work. > > How does one go about asking for an enhancement, say, for 'dd' - You've done it. Thanks. To make it happen, it would help if you: * Looked for existing practice. Maybe so

enhancement request for a long word byte swap option for 'dd'

2006-06-29 Thread Mike Lockhart
Dear Sir, I am an application-support analyst who makes extensive use of 'awk' scripts in my work. One problem I have run into lately is an endian issue. My company has worked in the Unix world for many years, and several years ago ported their applications to Linux. To avoid endian issues,