Automatic commit. Mon Aug 27 16:00:05 WST 2012
[matches/honours.git] / research / TCS / max_normalise.sh
index 6f1d220..bf4dabf 100755 (executable)
@@ -2,5 +2,7 @@
 
 # Script to normalise sample current based on it's peak value
 
-maxval=$(awk "{print \$$2 }" $1 | grep -v "[a-z]" | grep -v "-" | sort -g | tail --lines=1)
-awk "{print \$2\" \"\$$2/$maxval\" \"\$1 }" $1 | grep -v "[a-z]"
+maxval=$(grep -v "#.*" $1 | awk "{print \$$2 }" | sort -g | tail --lines=1)
+#echo $maxval
+#exit 0
+grep -v "#.*" $1 | awk "{print \$1\" \"\$$2/$maxval }"

UCC git Repository :: git.ucc.asn.au