for i in *.arf ; do echo ${i} fstatistic "${i}[ ENERG_LO >= 0.2 && ENERG_HI <= 10.0 ]" SPECRESP - | grep sum done
一般的なまとめ方
grppha ${i} ${i%.pha}_grp20.pha "group min 20" exit
2つのphaを同じbinでまとめる
grppha foo.pha dummy.pha "dump group groupfile.dat" exit grppha bar.pha binned.pha "group groupfile.dat" exit