id: 12329    nodeId: 12329    type: General    point: 138.0    linkPoint: .0    maker: cella    permission: linkable    made at: 2017.07.10 02:55    edited at: 2017.07.19 12:29
Using vi as a hex editor
https://www.schirmacher.de/display/Linux/Using+vi+as+a+hex+editor
The vi editor has a handy feature that does just this:
1. open the file using the -b option. This turns off any automatic formatting. For example: vi -b data
2. convert the binary data into hex format by entering :%!xxd
3. do the required edits (move around using the cursor keys, start inserting characters with the i key, leave inserting with the ESC key, delete characters with the x key)
4. convert the hex data back to binary by entering :%!xxd -r
5. write back your data by entering :w followed by :q or leave without writing the data by entering :q!

Return to how to generate 1/f noise or Using vi as a hex editor