rem Use of minmax
minmax test1.txt > _temp0.txt
minmax test2.txt >> _temp0.txt
minmax test3.txt >> _temp0.txt
rem Temporary treatment
gawk "NR==1{str0=$0;sub(/(: N =)/,\"\",str0);gsub(/</,\"\",str0);gsub(/>/,\"\",str0);print str0}" _temp0.txt > _temp1.txt
gawk "NR==2{str0=$0;sub(/(: N =)/,\"\",str0);gsub(/</,\"\",str0);gsub(/>/,\"\",str0);print str0}" _temp0.txt >> _temp1.txt
gawk "NR==3{str0=$0;sub(/(: N =)/,\"\",str0);gsub(/</,\"\",str0);gsub(/>/,\"\",str0);print str0}" _temp0.txt >> _temp1.txt
rem Get number of data, min.value and max.value
gawk "NR==1{nd=$2;split($3,a,\"/\");print nd,a[1],a[2]}" _temp1.txt > _temp2.txt
gawk "NR==2{nd=$2;split($4,a,\"/\");print nd,a[1],a[2]}" _temp1.txt >> _temp2.txt
gawk "NR==3{nd=$2;split($7,a,\"/\");print nd,a[1],a[2]}" _temp1.txt >> _temp2.txt
|