How can I extract meta tags from HTML in a bash/awk script?

First install xml2 e.g. Sudo apt-get install xml2 wget -q -O - latin.fm | xml2 | grep meta | awk -F/ '{print $NF}' Output @property=og:title @content=Latin FM ...

Eric, thanks for your comment. My desktop is Mac OS, I have xml2 littered all over my OS plus the framework (checked in Xcode) but can't figure out how to use it (execute xml2). – chuckfinley Aug 14 '11 at 20:21.

Just do this: $ awk '/meta name/{ gsub(/. *meta name=\042|\042. */,"");print }' file keywords To get from website, use wget wget -O- -q $url | awk '/meta name/{ gsub(/.

*meta name=\042|\042. */,"");print }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send