Grep variables with space within it (e.g. myvar="some strings")

grep "$myvar" filename
#remember to quote the variable!
click the source code to copy