summaryrefslogtreecommitdiff
path: root/extract_ranges.sh
blob: 2c513006c98a9da217ae9e1b1372cfe52ffb5fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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