Last active
October 8, 2021 16:49
-
-
Save dvigne/545e6df0e2a0826bc69c493c22838e89 to your computer and use it in GitHub Desktop.
An Extremely Small Bash Script to Grad the Current Headline for Today in Computer History.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Today in Computer History:\n" > ~/cowsay.txt; | |
http --body https://www.computerhistory.org/tdih/ | awk -F: '/chm-tdih-entry-title/ {gsub(/^[ \t]+/,"\n",$0); print; exit}' | sed -e 's/<[^>][^>]*>//g' -e '/^ -e *$/d' >> ~/cowsay.txt; | |
echo https://www.computerhistory.org/tdih/ >> ~/cowsay.txt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment