Last active
January 10, 2026 13:33
-
-
Save 0187773933/8ffc0d37dbc0b89ee59c4be3ae62e987 to your computer and use it in GitHub Desktop.
Timeline of Historic Inventions
This file contains hidden or 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
| #!/bin/bash | |
| curl -s https://en.wikipedia.org/wiki/Timeline_of_historic_inventions \ | |
| | pandoc -f html -t plain \ | |
| | sed -n '/^Paleolithic/,/^See also$/p' \ | |
| | awk ' | |
| /^[[:space:]]*- / { | |
| if (out) print out | |
| out = $0 | |
| next | |
| } | |
| NF { | |
| out = out " " $0 | |
| } | |
| END { | |
| if (out) print out | |
| } | |
| ' \ | |
| | sed 's/\^(\[[^]]*\]\(\[[^]]*\]\)*)//g' \ | |
| | sed 's/[[:space:]][[:space:]]*/ /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment