From 2a064a9d1bbb8de6ce489b685cce026eee167cd2 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 17 Mar 2020 22:48:49 +0000 Subject: deploy: fb719f52b73920fb18c7f3080ebb1fc73300be49 --- xxd.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xxd.html') diff --git a/xxd.html b/xxd.html index b2ebdfd..fe94dd2 100644 --- a/xxd.html +++ b/xxd.html @@ -81,7 +81,7 @@ @@ -155,19 +155,19 @@ -e dump as little endian mode -i output as C array -

from ascii to hex stream

+

ASCII to hex stream

  echo -n 'aabb' | xxd -p
     >> 61616262
 
-

from hex stream to binary stream

+

Hex to binary stream

  echo -n '61616262' | xxd -p -r
     >> aabb
 
-

ascii to binary

+

ASCII to binary

  echo -n '\x7fELF' | xxd -p | xxd -p -r | file -p -
     >> ELF
 
-

ascii to C array (hex encoded)

+

ASCII to C array (hex encoded)

  xxd -i <(echo -n '\x7fELF')
     >> unsigned char _proc_self_fd_11[] = {
     >>   0x7f, 0x45, 0x4c, 0x46
-- 
cgit v1.2.3