diff options
Diffstat (limited to 'get.sh')
| -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 |
