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.
See Question&Answers more detail:osTried
$ 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.
See Question&Answers more detail:os