FG
💻 Software

Delete data from the middle of a binary file with hexl-mode

Fresh6 days ago
Mar 15, 20267614 views
Confidence Score0%
0%

Problem

I have a fairly large binary file (a few tens of MB) and would like to remove a few KB somewhere in the middle, it's sandwiched data not the beginning nor the end. Ideally I'd like to use emacs and hexl-mode seems a likely candidate. Is it possible to delete one line from hexl buffer? Ctrl-k does n…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Delete data from the middle of a binary file with hexl-mode

Low Risk

Hexl mode does not allow you to delete characters. This answer from stack overflow suggests a workaround: overwrite the characters you want to delete with another character (say "X"), switch out of hexl mode, find the characters and delete them ther…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment