commit 7afc300bc36de16fe6be14e0ff122ea2d160ca1c parent f5f8a5bb7caf010394d85d1756bb5f9ab226aa66 Author: Anders Damsgaard Christensen <adc@geo.au.dk> Date: Wed, 4 May 2016 21:04:55 -0700 make script work regardless of locale settings Diffstat:
M | bin/currency | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/currency b/bin/currency @@ -23,7 +23,7 @@ CONVERTER="http://www.google.com/finance/converter?a=$A&from=$FROM&to=$TO" #echo $CONVERTER RESULT=`wget -nv -O - "$CONVERTER" 2>&1 | \ - sed -n -e 's/.*<span class=bld>\(.*\)<\/span>.*/\1/p'` + LC_ALL=C sed -n -e 's/.*<span class=bld>\(.*\)<\/span>.*/\1/p'` #echo "Result: $A $FROM = $RESULT" echo $RESULT