diff options
Diffstat (limited to 'extract_ranges.sh')
| -rwxr-xr-x | extract_ranges.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extract_ranges.sh b/extract_ranges.sh new file mode 100755 index 0000000..2c51300 --- /dev/null +++ b/extract_ranges.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "#" $(date) > results/range_table + +pool_heights=$(cat results/keff_table | awk '{print $1}' | uniq) +#pool_heights="41" + +for ph in $pool_heights; do + # Find min and max + output=$(cat results/keff_table | awk -v var=$ph '$1 == var {print $3}') + min_k=$(echo "$output" | sort -g | head -n 1) + max_k=$(echo "$output" | sort -g | tail -n 1) + echo $ph $min_k $max_k >> results/range_table +done |
