i’m just learning bash scripting, i was trying to scrape some data out of a site, mostly wikitionary. This is what I’m trying on the command line right now but it is not returning any result
wget -qO- http://en.wiktionary.org/wiki/robust | egrep '<ol>{[a-zA-Z]*[0-9]*}*</ol>'
What i’m trying is to get the data between the tags, just want them to be displayed. Can you please help me find out what I’m doing wrong ?
Thanks
you need to send output to stdout:
to get all
<ol>tags with grep you can do: