bash many patterns

hi guys

in my bash script I call wget to check for valid links like this:

wget -q "$1" -O- | grep -ow "href=\"http://[^\"]*\"" | sed -e 's/href=//g' -e 's/"//g'

but this only finds the urls starting with http.What if I also want to find the urls starting with Https and https?

add the -i option for case insensitive. or change the pattern [Hh].

1 Like

Ok for the case snsitive but also I have http and I want https ..
any ideas for that?