Explorar el Código

Added alias for taking average of numbers

Taddeus Kroes hace 11 años
padre
commit
7f0cb6c575
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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