xxd Questions

5

Solved

I've binary file consisting double float (8 bytes) or just float (4 bytes) value which was generated in the following way: $ python -c $'from struct import pack\nwith open("file.bin", "wb") as f: ...
Verniavernice asked 22/4, 2016 at 10:43

6

Solved

Say we have some arbitrary literals in a file that we need to replace with some other literal. Normally, we'd just reach for sed(1) or awk(1) and code something like: sed "s/$target/$replacement...
Diaeresis asked 6/1, 2019 at 7:55

3

Solved

I am using Catfish to find files containing certain text. Some of the files found instead of plain text contain something which looks like a hex dump: 3c3f 7068 700a 0a66 756e 6374 696f 6e20 7573 ...
Bencher asked 28/10, 2017 at 13:42

5

Solved

This question was out there for a while and I thought I should offer some bonus points if I can get it to work. What did I do… Recently at work, I wrote a parser that would convert a binary file...
Hotbed asked 10/11, 2011 at 20:58

2

Solved

I need to use a script based upon xxd, but it's not installed on my Fedora 21: $ xxd bash: xxd: command not found So I tried without success to search and install it: $ yum install xxd (fails) ...
Kunzite asked 23/3, 2016 at 13:20

1

Solved

Create a file named as test containing the following content: 0123456789abcdef0123456789abcdef I want to remove the first 0 with the use of xxd. Open it with vim -b test then run :%!xxd inside v...
Thunderhead asked 23/11, 2014 at 7:53

1

Solved

I am analyzing hex data from binary data dumps from a basic command-line program of mine. I'm basically dumping the exact contents of a struct (a large array of structs, actually) to a text file. ...
Cosy asked 5/5, 2013 at 0:1

3

Solved

I'm trying to understand how ID3 tags work, so, after reading some documentation, I started to look at some mp3's raw data. Vim is usually my editor of choice, so, after some googling, I found out ...
Delorsedelos asked 27/3, 2012 at 19:13

1

Solved

In my makefile I have the following target, which "compiles" text/HTML resources into unsigned char arrays using xxd -i. I wrap the result in an anonymous namespace and header guards for multiple-...
Heavierthanair asked 5/10, 2011 at 11:22
1

© 2022 - 2024 — McMap. All rights reserved.