Can someone suggest how to compare two urls in bash. I am getting false for below values.
var1=https://sample.myweb.net/templateuri/abc?resource
var2=https://sample.myweb.net/templateuri/abc?resource
Getting true for below condition.
if [[ "$var1" != "$var2" ]]; then
echo 'var1 and var2 not same'
fi
Can you please help to how go inside condition if not same only.