grep $1 monthly_corr.txt >djd1.tmp grep $2 djd1.tmp >$1.$2.txt cat $1.$2.txt