jeffsonstein ("Jeff Sonstein") wrote:
jeffs@Ultron ~ % cat bin/historyLoop.sh
#!/bin/shTHIS_RESPONSE=`/opt/homebrew/bin/toot post "[BEGIN TODAY IN HISTORY RUN]" | cut -d/ -f5`
cat /usr/share/calendar/cal* | grep `date +"%m/%d"` | cut -f 2 | sed s/\"/\'/g | while read line ; do
THIS_RESPONSE=`/opt/homebrew/bin/toot post -v unlisted -r $THIS_RESPONSE "Today in History: $line" | cut -d/ -f5`
done
/opt/homebrew/bin/toot post -v unlisted -r $THIS_RESPONSE "[END TODAY IN HISTORY RUN]"
jeffs@Ultron ~ %