From: Sam Moore Date: Fri, 3 Aug 2012 02:00:28 +0000 (+0800) Subject: Automatic commit. Fri Aug 3 10:00:28 WST 2012 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8e6ce0c4313d954db45c7c511dde4e3896b76bdb;p=matches%2Fhonours.git Automatic commit. Fri Aug 3 10:00:28 WST 2012 In the stairway of life, you'd best take the elevator. --- diff --git a/research/TCS/2012-08-02/max_normalise.sh b/research/TCS/2012-08-02/max_normalise.sh new file mode 100755 index 00000000..ef225c1e --- /dev/null +++ b/research/TCS/2012-08-02/max_normalise.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Script to normalise sample current based on it's peak value + +maxval=$(awk '{print $3}' $1 | grep -v "[a-z]" | grep -v "-" | sort -g | tail --lines=1) +awk "{print \$1\" \"\$2\" \"(\$3/$maxval) }" $1 | grep -v "[a-z]"