Parsing html content with grep
I have a html page things like this in it:
How do I use grep to output only the number (i.e. "1874298")? So far this is what I have:
<a id="p1874298" href="index.php?page=post&s=view&id=1874298">
But that doesn't fully work...
wget -O - example.com | grep -m 1 --only-matching --perl-regexp '<a id=\"[^<>]*'
The whole thing is so patently infantile, so foreign to reality, that to anyone with a friendly attitude to humanity it is painful to think that the great majority of mortals will never be able to rise above this view of life.