Code:
#!/usr/bin/env bash
ANGBAND_INSTALL_DIR=~/misc/angband
ANGBAND_USER_DIR=~/.angband/Angband
find_prf() {
echo "Searching \"$1\"..."
for d in "$ANGBAND_USER_DIR" "$ANGBAND_INSTALL_DIR/lib"; do
echo "Checking $d"
[ ! -d "$d" ] && echo "\"$d\" is not a directory!"
while IFS= read -r -d '' f; do
grep -iEHT "monster:$1:" "$f"
done < <(find "$d" -iname '*.prf' -print0)
done
}
find_prf Soldier
find_prf Kobold
Naturally, change the value of ANGBAND_INSTALL_DIR to where you installed Angband.
The names are super-confusing, I know. v4 was basically a variant the dev team at the time used to experiment with new mechanics, which included a new combat system I put together. But that combat system isn't in Vanilla. At least, it isn't yet. ...nor are there any remotely concrete plans to add it, either. 
Leave a comment: