Automatic commit. Fri Aug 3 10:00:28 WST 2012
authorSam Moore <[email protected]>
Fri, 3 Aug 2012 02:00:28 +0000 (10:00 +0800)
committerSam Moore <[email protected]>
Fri, 3 Aug 2012 02:00:28 +0000 (10:00 +0800)
In the stairway of life, you'd best take the elevator.

research/TCS/2012-08-02/max_normalise.sh [new file with mode: 0755]

diff --git a/research/TCS/2012-08-02/max_normalise.sh b/research/TCS/2012-08-02/max_normalise.sh
new file mode 100755 (executable)
index 0000000..ef225c1
--- /dev/null
@@ -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]"

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