Commits

Ben Bass committed c146e83

add sumcol to .bash_aliases

  • Participants
  • Parent commits f2a9bc6

Comments (0)

Files changed (2)

   mkdir -p $1 && cd $1
 }
 
+# sumcol - sum given column of csv input
+sumcol () {
+  awk -F, "{s += \$$1} END {print s}"
+}
+
 sl () {
  # select line. e.g. '$ seq 10 20 | sl 4' => 13
  sed -n "$1p"
+source ~/.vimrc