#!/bin/bash while read -r line do # mapName (we only want originalMapName) # grep blockreleases tourn.html | head -n1 | grep -oE 'id="[^"]+"' | cut -d '"' -f2 | cut -d '-' -f2 orginalMapName="$(echo "$line" | grep -oE 'Map size: [0-9]+x[0-9]+">[^<]+

by [^:]+' | head -n1 | cut -d '>' -f2-)" server="$(echo "$line" | grep -oE '[^<]+ Server' | head -n1 | cut -d':' -f2 | cut -c 2- | rev | cut -c 8- | rev)" date="$(echo "$line" | grep -oE '>[0-9]{4}(-[0-9]{2}){2}by