#!/bin/bash

for file in $@; do
	node $(dirname $0)/average.js $file |sort -g -k2 > $(dirname $file)/avg_$(basename $file)
done
