hex editor

2006-05-20 Thread Joseph Alotta

Greetings,

I have this text file I want to read that has ^M as the record  
separator (in emacs).  Is there a utility on the Mac that i can use  
to view this file in hex.   I thought i remember something like hex  
filename, but it is not there.


Joe.




Re: hex editor

2006-05-20 Thread Adrian Hosey
On Sat, 20 May 2006, Joseph Alotta wrote:
: 
: I have this text file I want to read that has ^M as the record separator (in
: emacs).  Is there a utility on the Mac that i can use to view this file in
: hex.   I thought i remember something like hex filename, but it is not
: there.


hexdump. Check the man page, it has several useful flags. I like -C:

piltdown:~ alh$ hexdump -C testasm.s
  2e 74 65 78 74 0a 2e 67  6c 6f 62 6c 20 5f 6d 61  |.text..globl _ma|
0010  69 6e 0a 5f 6d 61 69 6e  3a 09 0a 09 70 75 73 68  |in._main:...push|
0020  6c 09 24 30 78 30 30 0a  09 6d 6f 76 6c 09 25 65  |l.$0x00..movl.%e|
etc...

--
Make sure your code does nothing gracefully.



Re: hex editor

2006-05-20 Thread Vic Norton
On 5/20/06, at 1:37 PM -0500, Joseph Alotta wrote:
 I have this text file I want to read that has ^M as the record  
 separator (in emacs).  Is there a utility on the Mac that i can use  
 to view this file in hex.   I thought i remember something like hex  
 filename, but it is not there.

Path Finder http://www.cocoatech.com can do this. It is an
extraordinarily useful Finder substitute.


Re: hex editor

2006-05-20 Thread Doug McNutt
At 12:37 -0500 5/20/06, Joseph Alotta wrote:
I have this text file I want to read that has ^M as the record  separator (in 
emacs).  Is there a utility on the Mac that i can use  to view this file in 
hex.   I thought i remember something like hex  filename, but it is not 
there.


hexedit is a GUI tool for Macintosh that has been around for a long time.

MPW and BBEdit have a dumpfile option that displays in hex but will not allow 
editing.

sedit was around for Classic OS which allowed editing and access to SCSI 
features. That probably is dead for ATA drives.

pack and print with perl??
-- 

-- From the U S of A, the only socialist country that refuses to admit it. --