From a859f2f276527a7a81b7a68eb8fc45c65fb65e7c Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 1 Mar 2015 18:49:27 -0600 Subject: [PATCH] 80 char lines for cconv. --- common/.profile.d/20-functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/.profile.d/20-functions.sh b/common/.profile.d/20-functions.sh index 88d9ef7..0bc70ff 100644 --- a/common/.profile.d/20-functions.sh +++ b/common/.profile.d/20-functions.sh @@ -85,5 +85,8 @@ login_shell() # Use is NUM FROM TO and boom get the currency converted from goggle. cconv() { - curl -L --silent "https://www.google.com/finance/converter?a=$1&from=$2&to=$3" | grep converter_result | perl -pe 's|[<]\w+ \w+[=]\w+[>]||g;' -pe 's|[<][/]span[>]||' + curl -L --silent\ + "https://www.google.com/finance/converter?a=$1&from=$2&to=$3" + | grep converter_result\ + | perl -pe 's|[<]\w+ \w+[=]\w+[>]||g;' -e 's|[<][/]span[>]||' }