ls dir | sed -e 's/\.txt$//'
for directory in */; do
echo $directory
done
DATE=`date -d 'yesterday' +"%Y-%m-%d"`
START_DATE=`date -d '30 days ago' +"%Y-%m-%d"`
while [ $START_DATE != $DATE ]; do
if [ -d "Folder_$START_DATE" ]
then
do something
fi
START_DATE=$(date -I -d "$START_DATE + 1 day")
done