#!/bin/sh list_pokemon() { cat < "$html" level1="$(pup -p 'span.infocard:nth-child(2) > small:nth-child(2) text{}' < "$html")" level2="$(pup -p 'span.infocard:nth-child(4) > small:nth-child(2) text{}' < "$html")" herbe "_p.sh" "$level1\n$level2" ;; # moves m*) $BROWSER "https://bulbapedia.bulbagarden.net/wiki/${pokemon}_(Pok%C3%A9mon)/Generation_V_learnset" ;; # stats s*) $BROWSER "https://www.smogon.com/dex/bw/pokemon/$pokemon/" ;; *) choice="$(printf 'evolution\nmoves\nstats\n' | commander -c -w 3)" [ "$choice" ] && pokemon="$pokemon" $0 "$choice" ;; esac