I am trying to extract URLS from a webpage up to user defined n levels using wget. I tried this
wget -r -l$2 --reject=gif -O out.html www.google.com | sed -n 's/.*href="\([^"]*\).*/\1/p'` "
It is displaying only the first level. it is not parsing any levels how could i rectify it