I got the page http://www.cpubenchmark.net/cpu_list.php and I want to extract given CPU's with their Name, Rank and benchmark score.
Example ("Intel Core i5"):
Intel Core i5-3450 @ 3.10GHz - Score: 3333 - Rank: 1
Intel Core i5-3450S @ 2.80GHz - Score: 2222 - Rank: 2
Intel Core i5-2380P @ 3.10GHz - Score: 1111 - Rank: 3
...
How can I do that in bash? Tried to start with something like that (without cpu filtering - don't know how that works):
#!/bin/sh
curl http://www.cpubenchmark.net/cpu_list.php | grep '^<TR><TD>' \
| sed \
-e 's:<TR>::g' \
-e 's:</TR>::g' \
-e 's:</TD>::g' \
-e 's:<TD>: :g' \
| cut -c2- >> /home/test.txt
Output is something like that:
<A HREF="cpu_lookup.php?cpu=686+Gen&id=1495">686 Gen</A> 288 1559 NA NA
<A HREF="cpu_lookup.php?cpu=AMD+A10-4600M+APU&id=10">AMD A10-4600M APU</A> 3175 388 NA NA
<A HREF="cpu_lookup.php?cpu=AMD+A10-4655M+APU&id=11">AMD A10-4655M APU</A> 3017 406 NA NA