# Script to normalise sample current based on it's peak value
maxval=$(grep -v "#.*" $1 | awk "{print \$$2 }" | sort -g | tail --lines=1)
# Script to normalise sample current based on it's peak value
maxval=$(grep -v "#.*" $1 | awk "{print \$$2 }" | sort -g | tail --lines=1)