瀏覽代碼

80 char lines for cconv.

cray
Mitch Tishmack 11 年之前
父節點
當前提交
a859f2f276
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      common/.profile.d/20-functions.sh

+ 4
- 1
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[>]||'
}

Loading…
取消
儲存