From 87760a25d5aa29c55ecdc172b0179466ec196e63 Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Thu, 22 Mar 2012 18:02:38 +1300 Subject: Use /bin/echo - shell builtin doesn't have -ne Signed-off-by: Mike Beattie --- encode_html.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode_html.sh b/encode_html.sh index 26f6677..50da6cc 100755 --- a/encode_html.sh +++ b/encode_html.sh @@ -4,7 +4,7 @@ scp index.html prometheus.ethernal.org:public_html/arduino.html # Fetch HTML with appropriate Accept-Encoding: header -> save to raw file -echo -ne "GET /~mjb/arduino.html HTTP/1.0\nAccept-Encoding: gzip\n\n" | nc www.ethernal.org 80 > index_gzip.raw +/bin/echo -ne "GET /~mjb/arduino.html HTTP/1.0\nAccept-Encoding: gzip\n\n" | nc www.ethernal.org 80 > index_gzip.raw # Process Raw file - delete headers and blank line -> save to raw gzip dat file sed -e '0,/^\r$/d' index_gzip.raw > index_gzip.dat -- cgit v1.2.3