Issue
Tried
$ echo "$STRING" | egrep "(\*)"
and also
$ echo "$STRING" | egrep '(\*)'
and countless other variations. I just want to match a line that contains a literal asterisk anywhere in the line.
Solution
Try a character class instead
echo "$STRING" | egrep '[*]'
Answered By - pavium