私はこれに慣れていないので、これはばかげた質問のように見えるかもしれませんが、このコードを機能させることができません。grepが変数名を探しており、その値を探していないようです。どんな助けでもありがたいです。
if [ "$file" == "osi_OpenInterest" ]
then
count=`cat timestamps.txt | grep "${file}" | grep "${currdate}" | grep "07:" | grep "AM" | wc -l`
if [ $count -eq 0 ];
then
echo "$file not found" | mail -s "RetrieverB Missing File" "$email"
fi
fi