# set f = ../data/input/ClientData6-19/games/logs/64.74.138.156/04-06-18_01-08-11.stats grep '^51,' $f > PLAYERS sed -e 's/,/#1#/' < PLAYERS > temp0.txt sed -e 's/,/#2#/' < temp0.txt > temp1.txt sed -e 's/,/#3#/' < temp1.txt > temp2.txt sed -e 's/,/#4#/' < temp2.txt > temp3.txt sed -e 's/^.*#3#//' < temp3.txt > temp4.txt sed -e 's/#4#.*$//' < temp4.txt | sort -n | uniq > PLAYERS rm -f temp?.txt # set w = Weapon_M4A1_Rifle_Mod # foreach w ( `cat EVENTS` ) foreach w ( \ AGP.CommoRadio \ AGP.CommoShout \ Damage \ MinorFallDamage \ TeamSay \ Throw_M67_Frag \ Throw_M83_Smoke \ Throw_M84_Stun \ Weapon_M203_Gren \ Weapon_M249_SAW \ Weapon_M4A1_Rifle_Mod \ Weapon_RPK_SAW \ Whisper \ ) rm -f *.txt echo $w rm -rf $w mkdir $w foreach p ( `cat PLAYERS`) echo $p grep $w $f | grep $p | grep -v ProjectileDamage556mm > temp0.txt sed -e 's/,/#1#/' < temp0.txt > temp1.txt sed -e 's/,/#2#/' < temp1.txt > temp2.txt sed -e 's/^.*#1#//' < temp2.txt > temp3.txt sed -e 's/#2#.*$//' < temp3.txt > temp4.txt mv temp4.txt $p.txt rm -f temp?.txt end rm -f *_bin.txt foreach d ( *.txt ) bin_data -N -l `cat $d | wc -l` -m 18450 < $d > $d:r_bin.txt end mv *_bin.txt $w end rm -f *.txt