I have a string, "$server['fish_stick']" (disregard double quotes)
I don't know how to successfully grep for an exact match for this string. I've tried many ways.
I've tried,
rgrep -i \$'server'\[\''fish'\_'stick'\'\] . rgrep -i "\$server\[\'fish\_stick\'\]" . rgrep -i '\$server\[\'fish\_stick\'\]' . Is it single quotes that are causing my issue? When I echo the first grep out it shows exactly what I want to search but returns garbage results like anything with $server in it.
Please help and explain, thank you!