#!/usr/bin/env bash
# parse dbzfe combat log for combat-relevant lines
# grabs lines starting with (after timestamp): * or You

log="${1:-docs/research/dbzfe.log}"

if [[ ! -f "$log" ]]; then
    echo "usage: docs/research/dbzfe [logfile]"
    echo "default: docs/research/dbzfe.log"
    exit 1
fi

grep -E '^[0-9:.]+[[:space:]]+((\*|You ))' "$log"
