summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoehm2014-09-16 17:58:22 +0200
committermoehm2014-09-16 17:58:22 +0200
commit6efe9b95c1c1fa1022b2f71a9f53f55de1155d5c (patch)
treec6955351b348f3878c3018c7dfdfe9cb4748f928
parent6c5b29fe8e6763faec277874d9b8e0c7e8f32a3d (diff)
downloadpokewiki-6efe9b95c1c1fa1022b2f71a9f53f55de1155d5c.tar.gz
extrahiere statuswerte
-rwxr-xr-xget.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/get.sh b/get.sh
index 1c2398e..d976362 100755
--- a/get.sh
+++ b/get.sh
@@ -49,4 +49,7 @@ for ((i=1;i<=$LINES;i++)); do
echo "Lade Informationen zu $(tput setaf 3)'$POKEMON'$(tput sgr0) runter."
# speichere datei in textdatei
elinks -dump "${WIKI}${POKEMON}" > ${SAVEPATH}${POKEMON}.txt
+
+ # extrahiere 'Statuswerte'
+ grep -A 9 -i 'Maxwerte' "${SAVEPATH}${POKEMON}.txt" | sed 's/\[[0-9]*\]/ /g' >> ${SAVEPATH}${POKEMON}.statuswert.txt
done