foreach i (A B C D E F G H I J K) 
	foreach j (A B C D E F G H I J K) 
		setenv f ${i}${j}
		mkdir -p $f
		echo $f	
		foreach k ("Agent" "For-Sale" "In-Stock"  "On-Demand" )
			setenv m $k
			foreach l (../progress/[0-9]*.txt)
				awk -F '\t' '{if ($4 == ENVIRON["f"] && $3 == ENVIRON["m"]) print}' $l >> $f/$k.txt
			end
		end
	end
end
