diff options
| author | moehm | 2014-09-16 17:58:22 +0200 |
|---|---|---|
| committer | moehm | 2014-09-16 17:58:22 +0200 |
| commit | 6efe9b95c1c1fa1022b2f71a9f53f55de1155d5c (patch) | |
| tree | c6955351b348f3878c3018c7dfdfe9cb4748f928 | |
| parent | 6c5b29fe8e6763faec277874d9b8e0c7e8f32a3d (diff) | |
| download | pokewiki-6efe9b95c1c1fa1022b2f71a9f53f55de1155d5c.tar.gz | |
extrahiere statuswerte
| -rwxr-xr-x | get.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
