Quantcast
Channel: User msndm - Ask Ubuntu
Viewing all articles
Browse latest Browse all 10

search for a string through the whole website

$
0
0

In my specific goal, I'd like to go to a journal website and search for my keywords. I can define the keywords then grep for a string like below:

keyword="Hello"
web="https://whatever_webpage"
COUNT=$(wget $web -q -O - | grep -i -c "$keyword")
echo "Found $COUNT"

But inside a webpage, there are lots of links containing the keywords. I need to know how can I access to the whole text match to the keywords through the whole website.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images