- for i in {1..37}; do curl -s http://www.bwlc.gov.cn/bulletin/search.jsp?id=1\&page=$i |grep -A 246 "<td>紅球</td>"|grep -B 246 "</table>"|sed '1,5 d' |sed 's/="[^"]*[><][^"]*"//g;s/<[^>]*>//g'|sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*$//g' -e '/^$/d' |awk 'BEGIN{ORS=""}{if(/開獎公告/)print "\n"; else print $0" "}' ;done