aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xxd.md
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-03-17 22:30:12 +0100
committerjohannst <johannes.stoelp@gmail.com>2020-03-17 22:30:12 +0100
commit745b6b2204f5003877911b1078c71b707e9b51d6 (patch)
tree10b98fb334523c958bbca6012213b7468422f2e6 /src/xxd.md
parent955a20fd6c75404a7c6a752a453c4a29c7b73980 (diff)
downloadnotes-745b6b2204f5003877911b1078c71b707e9b51d6.tar.gz
notes-745b6b2204f5003877911b1078c71b707e9b51d6.zip
updated xxd
Diffstat (limited to 'src/xxd.md')
-rw-r--r--src/xxd.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xxd.md b/src/xxd.md
index 879a54b..cd76f14 100644
--- a/src/xxd.md
+++ b/src/xxd.md
@@ -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[] = {