mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
chore(packages): reorganize scripts
This commit is contained in:
9
packages/scripts/odyssey.sh
Executable file
9
packages/scripts/odyssey.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
if [ "$#" -eq 1 ] && (echo "$1" | grep -Eq '[0-9]+\.[0-9]+'); then
|
||||
curl -Gs http://www.perseus.tufts.edu/hopper/CTS \
|
||||
-d request=GetPassage \
|
||||
-d "urn=urn:cts:greekLit:tlg0012.tlg002:$1" \
|
||||
| xmlstarlet sel -t -v 'cts:GetPassage//tei:div'
|
||||
else
|
||||
echo you must supply BOOK.VERSE
|
||||
fi
|
||||
Reference in New Issue
Block a user