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...
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)
...
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...
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.
...
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 ...
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-...
1
© 2022 - 2024 — McMap. All rights reserved.