#!/bin/ksh set -eu html=$(curl -s $1) html=$(echo "$html" | awk '/div class="content-wrapper"/{printf $0 RS}' RS='\n\n') title='' # list of patterns to look for p_link="*href*" p_title='*