blob: d0a58c4976550103bedb907735e426bad6c3b4a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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}' | sed 's/ /\n/g')
echo -e "${output}"
min_k=$(echo "$output" | sort -g | head -n 1)
max_k=$(echo "$output" | sort -g | tail -n 1)
echo PH:: $ph MIN:: $min_k MAX:: $max_k
echo $ph $min_k $max_k >> results/range_table
done
|