Other solutions have been posted from time to time as well. But we seem to have a database error that has rendered our search function into an interesting challenge.
todays_date=`date +%m/%d/%C%y` #mm/dd/yyyy format
yesterdays_date=`TZ=MST31 date +%m/%d/%C%y`
echo "select * from price-file
where date between '$yesterdays_date'
and '$todays_date';" | dbaccess mydb >> sql.output
Embedding the SQL statement in a Unix Shell Script is one solution. The trickiest part is accurately calculating yesterday's date. As suggested, search the forum for more detail on this subject.