I've declared a string with two newlines inside of string
somestring=$'\n##### Branch FREEZE enable/disable\nRelease:'
I have a $file with a text inside like this
###############################
##### Branch RELEASE enable/disable
Release: disable
##### Branch FREEZE enable/disable
Freeze: disable
##### Mail list #####
I am trying to figure out, if there is a string inside with both of the newlines with a command
if grep -q "$somestring" "$file"; then echo "found the string"
But the result is always positive, when there is a newline inside of string.
How can I make it work correct with newlines inside?