#!/bin/csh -f 

mkdir -p lead-like frag-like FGH-like IJK-like greasy-like all-like

foreach i (Agent  For-Sale In-Stock  On-Demand ) 
	cat [CDE][ABCDEFG]/$i.txt > lead-like/$i.smi
	cat [AB][ABCDEFG]/$i.txt > frag-like/$i.smi
	cat [FGH][ABCDEFG]/$i.txt > FGH-like/$i.smi
	cat [IJK][ABCDEFG]/$i.txt > IJK-like/$i.smi
	cat ?[HIJK]/$i.txt > greasy-like/$i.smi
	cat ??/$i.txt > all-like/$i.smi
	echo $i
end
