Did this with bash...while read line; do date -d"${line} next year" +%a; done < date.txt | grep Fri | wcShould probably shorten it with a "grep -c" instead of wcRequires gnu date, won't work the same on a Mac.