PHP wizard needed
Kevin D. Clark
clark_k at pannaway.com
Wed Oct 27 14:55:01 EDT 2004
Travis Roy <travis at scootz.net> writes:
> The html is a report for our customers.. I want to grab the 95th
> percentile number..
>
> <TR>
>
> <TD WIDTH="170">95th Percentile:</TD>
>
> <TD>9.88 Kbits/second</TD>
>
> <TD WIDTH="350"></TD>
>
> </TR>
I would snarf this thusly:
perl -ln -0777 -e '/95th Percentile:.*?(\d+\.\d+\s+Kbits\/second)/s; print $1;' <your-file.html
Regards,
--kevin
--
GnuPG ID: B280F24E
More information about the gnhlug-discuss
mailing list