From ef975e23094ed373fa1f85ccaea16438d26bfe16 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Wed, 11 Dec 2013 19:55:09 +0100 Subject: [PATCH] Make stats example program immune to MacOS's sed --- examples/stats/wifi-example-db.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/stats/wifi-example-db.sh b/examples/stats/wifi-example-db.sh index dc129251e..e13f78748 100755 --- a/examples/stats/wifi-example-db.sh +++ b/examples/stats/wifi-example-db.sh @@ -70,7 +70,8 @@ CMD="select exp.input,avg(100-((rx.value*100)/tx.value)) \ order by abs(exp.input) ASC;" sqlite3 -noheader data.db "$CMD" > wifi-default.data -sed -i "s/|/ /" wifi-default.data +sed -i.bak "s/|/ /" wifi-default.data +rm wifi-default.data.bak gnuplot wifi-example.gnuplot echo "Done; data in wifi-default.data, plot in wifi-default.eps"