/ Published in: Bash
All on one line for CLI convenience.
In this example, "file1" is assumed to contain a single column of floating point numbers. To get the average of the second column in a comma separated values file, change `cat $FILE` to `cat $FILE | cut -d, -f 2`
SCALE refers to the number of decimal places after the dot.
In this example, "file1" is assumed to contain a single column of floating point numbers. To get the average of the second column in a comma separated values file, change `cat $FILE` to `cat $FILE | cut -d, -f 2`
SCALE refers to the number of decimal places after the dot.