From 745b6b2204f5003877911b1078c71b707e9b51d6 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 17 Mar 2020 22:30:12 +0100 Subject: updated xxd --- src/xxd.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/xxd.md') 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[] = { -- cgit v1.2.3