19 lines
388 B
Bash
Executable File
19 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DATADIR="/usr/share/fuzzy-pokedex-dev/pokeData"
|
|
|
|
declare -i WC
|
|
WC=$(pokemon-colorscripts -l | wc | awk '{print $1}' )
|
|
|
|
declare -i COUNT
|
|
COUNT="$WC"
|
|
|
|
for POKEMON in $(pokemon-colorscripts -l); do
|
|
pokeParse "$POKEMON" > "$DATADIR/$POKEMON"
|
|
((COUNT--))
|
|
PCTLEFT="$((COUNT*100/WC))"
|
|
PCTDONE="$((100-PCTLEFT))"
|
|
printf "\t%s - %s \t%s%%\n" "$COUNT" "$POKEMON" "$PCTDONE"
|
|
done
|
|
|