#!/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