diff options
author | Mike Beattie <mike@ethernal.org> | 2012-03-22 18:02:38 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-03-22 18:02:38 +1300 |
commit | 87760a25d5aa29c55ecdc172b0179466ec196e63 (patch) | |
tree | 6f4bfa0f5dd3466cce8b8bc74051e57bbf051345 /encode_html.sh | |
parent | 4b9f94f94b37267f2df4183668795e483d78264a (diff) |
Use /bin/echo - shell builtin doesn't have -ne
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'encode_html.sh')
-rwxr-xr-x | encode_html.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |