#!/bin/bash # Extract all hotness items xml_file="/home/hermes/workspace/bgg-scrape/hotness_full.xml" echo "=== BGG Hotness List ===" grep -oP ']*>' "$xml_file" | while read line; do id=$(echo "$line" | grep -oP 'id="\K[^"]+') rank=$(echo "$line" | grep -oP 'rank="\K[^"]+') name=$(echo "$line" | grep -oP '