Re: Can vi edit binary file in hex format?

2003-07-09 Thread othermark
Supote Leelasupphakorn wrote:
>Is there option that enable standard vi (accompany wiht FreeBSD)
> for editing binary file in hex format ?

I do this fairly regularly, just use xxd.  For example try this:

cp /bin/cat ~/mycat
vi ~/mycat

[esc] :%!xxd 



[esc] :%!xxd -r
[esc] :wq!
./mycat 

You can also 'pre' xxd transform the file, then edit it, then transform
it back when finished.

---
Mark
atkin901 at NOSPAM yahoo dot com
(!wired)?(coffee++):(wired);

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can vi edit binary file in hex format?

2003-07-09 Thread Alexander Haderer
At 11:00 09.07.2003 +0100, Daniel Bye wrote:
On Wed, Jul 09, 2003 at 06:15:36AM +0100, Supote Leelasupphakorn wrote:
>Is there option that enable standard vi (accompany wiht FreeBSD)
> for editing binary file in hex format ?
Don't know, but there are a handful of hex editors in ports.  Maybe one of
them will fit?
[danielby: /usr/ports]$ make search name=hex | grep "^Path:.*/editors"
Path:   /usr/ports/editors/chexedit
Path:   /usr/ports/editors/ghex
Path:   /usr/ports/editors/ghex2
Path:   /usr/ports/editors/hexcurse
Path:   /usr/ports/editors/hexedit
Path:   /usr/ports/editors/hexpert
Path:   /usr/ports/editors/lfhex
One is missing: A vi-lookalike hex editor from the ports:

 /usr/ports/editors/bvi

Alexander

--
--
Alexander Haderer Charite
  Campus Virchow-Klinikum
Tel.  +49 30 - 450 557 182Strahlenklinik und Poliklinik
Fax.  +49 30 - 450 557 117Sekr. Prof. Felix
Email [EMAIL PROTECTED]Augustenburger Platz 1
www   http://www.charite.de/rv/str/   13353 Berlin - Germany
--
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can vi edit binary file in hex format?

2003-07-09 Thread Daniel Bye
On Wed, Jul 09, 2003 at 06:15:36AM +0100, Supote Leelasupphakorn wrote:
>Is there option that enable standard vi (accompany wiht FreeBSD)
> for editing binary file in hex format ?

Don't know, but there are a handful of hex editors in ports.  Maybe one of
them will fit?

[danielby: /usr/ports]$ make search name=hex | grep "^Path:.*/editors"
Path:   /usr/ports/editors/chexedit
Path:   /usr/ports/editors/ghex
Path:   /usr/ports/editors/ghex2
Path:   /usr/ports/editors/hexcurse
Path:   /usr/ports/editors/hexedit
Path:   /usr/ports/editors/hexpert
Path:   /usr/ports/editors/lfhex

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature


Can vi edit binary file in hex format?

2003-07-08 Thread Supote Leelasupphakorn
   Is there option that enable standard vi (accompany wiht FreeBSD)
for editing binary file in hex format ?

Thanks in advance,



Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"