dirs=`ls -rlth | awk '$1~/^d/{print $9}'`

for i in $dirs
do
echo ${i}
cd ${i}
ls -rlth *json | awk '{sub(/.json/,"",$9); print $9}' > genelist
cd ../
done
