浏览代码

Added alias for taking average of numbers

Taddeus Kroes 11 年之前
父节点
当前提交
7f0cb6c575
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      bashrc

+ 1 - 0
bashrc

@@ -92,6 +92,7 @@ alias c='xclip -i -selection clipboard'
 alias vimdiff='vim -d -c "colorscheme desert"'
 alias ydiff='diff -y -W 196 --left-column'
 alias v='gpicview'
+alias avg="awk '{a+=\$1} END{print a/NR}'"
 
 function tm () {
     `which time` -f %e $* > /dev/null