Averaging text files with bash and awk
Small script that might be useful for analysing data. The script takes multiple files (filemask is $1) which are composed of data columns, and produces the average of each data point across the files. Leaving around for future reference. Usage: $ average.sh “filename.*” > filename.avg sum=`ls -l $1 | wc -l` tf=`ls $1 | tail […]