* How to modify binary file in emacs/vi
@ 2004-02-27 14:44 Datta Patil
2004-02-27 15:29 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Datta Patil @ 2004-02-27 14:44 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
Hi all ,
I have binary file(it looks like 101010100100001001001)
I have opened in emac....in hex mode(by giving ESC X--->hexl mode)
now it looks like (1ad3 89f0 0ba2.....)
Now i want to change to :
1ad3 89f0 0ba2 original file
2bd3 89f0 0ba2 new file(say)
but when i type 2 ...it takes its asciii value & changes two bytes.What i
want is when i press 2 , its hexadecimal value(i.e. 2) insted of ascii value
should appear.
Is there any method to change one-nible value in emacs or vi .
Plz help ...its v imp & will save our lot of time.(Basically in above case
we r trying to corrupt data)
Note : input file is binary file.
Thanx lot in advance.
Regards/Mit freundlichen Grüßen,
Datta Patil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to modify binary file in emacs/vi
2004-02-27 14:44 How to modify binary file in emacs/vi Datta Patil
@ 2004-02-27 15:29 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-02-27 15:29 UTC (permalink / raw)
> From: "Datta Patil" <dattatraya.patil@in.bosch.com>
> Newsgroups: gnu.emacs.help
> Date: Fri, 27 Feb 2004 20:14:52 +0530
>
> Now i want to change to :
> 1ad3 89f0 0ba2 original file
> 2bd3 89f0 0ba2 new file(say)
> but when i type 2 ...it takes its asciii value & changes two bytes.What i
> want is when i press 2 , its hexadecimal value(i.e. 2) insted of ascii value
> should appear.
>
> Is there any method to change one-nible value in emacs or vi .
In the Hexl buffer, type "C-h m". Emacs will pop up a window that
describes the various features of the Hexl mode, including several
methods of modifying bytes and nibbles of the original file. "C-M-x"
seems to be the command that you are looking for, but perhaps
something else is more convenient, so I suggest to read the whole text
displayed by "C-h m".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-27 15:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 14:44 How to modify binary file in emacs/vi Datta Patil
2004-02-27 15:29 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).