I'm not sure why you would want to use 'grep' on a string - a string is typically a single line, and grep is used to find matches in one or more files.
If the string is very long, say 32000 characters or so, you could take the string and echo it or cat it thru grep, but again, if there is a match, the entire string would be print anyway.
Use the 'grep' command.
grep
Grep
Use the 'grep' family of commands to search for string pattern matches in multiple files.
Use the "-i" argument See 'man grep' for more information
Grep is: Global regular expression Parser
'grep' searches a file for lines which match a given regular expression.
grep '\<h.*o\>'
No, it is an integer. You can save an integer value to a string variable but, in this case the value is explicitly stated to be 3.
what is the value of an alembic excel 5 string bass
grep filename "http:" assuming that the URL's you want to find being in http.
string is group of characters last value is initialised by zero