+function wclines
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index c3d9626..977133b 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -47,6 +47,8 @@ function cvsdiffi   { cvs diff   "$@" 2>&1|grep -v '^?'|less; }; export -f cvsdi
 function cvsupdate  { cvs update "$@" 2>&1|             less; }; export -f cvsupdate
 function cvsupdatei { cvs update "$@" 2>&1|grep -v '^?'|less; }; export -f cvsupdatei
 
+function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
+
 ulimit -c 0
 
 if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi