Simple enough issue but I cannot seem to solve it. I need the below to be True.
var1="was shot by skeleton"
var2="was shot by"
if [ "$var1" == "$var2" ]; then
echo "true"; else
echo "false"
fi
I have Tried putting "*" beside var2 but no luck.
Thanks, Simon