diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-03-17 22:30:12 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-03-17 22:30:12 +0100 |
commit | 745b6b2204f5003877911b1078c71b707e9b51d6 (patch) | |
tree | 10b98fb334523c958bbca6012213b7468422f2e6 | |
parent | 955a20fd6c75404a7c6a752a453c4a29c7b73980 (diff) | |
download | notes-745b6b2204f5003877911b1078c71b707e9b51d6.tar.gz notes-745b6b2204f5003877911b1078c71b707e9b51d6.zip |
updated xxd
-rw-r--r-- | src/xxd.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,25 +8,25 @@ -i output as C array ``` -## from ascii to hex stream +## ASCII to hex stream ```markdown echo -n 'aabb' | xxd -p >> 61616262 ``` -## from hex stream to binary stream +## Hex to binary stream ```markdown echo -n '61616262' | xxd -p -r >> aabb ``` -## ascii to binary +## ASCII to binary ```markdown echo -n '\x7fELF' | xxd -p | xxd -p -r | file -p - >> ELF ``` -## ascii to C array (hex encoded) +## ASCII to `C` array (hex encoded) ```markdown xxd -i <(echo -n '\x7fELF') >> unsigned char _proc_self_fd_11[] = { |