3 # Script to normalise sample current based on it's peak value
5 maxval=$(grep -v "#.*" $1 | awk "{print \$$2 }" | sort -g | tail --lines=1)
8 #grep -v "#.*" $1 | awk "{ for (i=0; i <= NF; ++i) {if (i == $2) print \$i / $maxval; else print \$i;} }"
9 grep -v "#.*" $1 | awk "{print \$1\" \"\$2\" \"(\$$2 / $maxval) }"