From 40a4808074c2daa0f2f83faf22aa7e8a77f8fb22 Mon Sep 17 00:00:00 2001 From: Mike Seplowitz Date: Mon, 12 Jan 2015 17:36:37 -0500 Subject: Strip tabs from od's output /bin/od on Solaris and AIX both generate tabs. --- src/inline.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inline.sh b/src/inline.sh index 5acc17b..fa282fa 100755 --- a/src/inline.sh +++ b/src/inline.sh @@ -20,6 +20,6 @@ varname="$1" echo "const char $varname[] =" -od -t x1 -A n -v | sed -e 's| ||g; s|..|\\x&|g; s|^|"|; s|$|"|' +od -t x1 -A n -v | sed -e 's|[ \t]||g; s|..|\\x&|g; s|^|"|; s|$|"|' echo ";" -- cgit v0.12