I have a file with this contents (or similar):
# cat /var/www/htpasswd
foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/
and I'm trying to verify the presence of an entry in it, by matching it, like this:
# grep --fixed-string "foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/" /var/www/htpasswd
#
but it's not matching anything. Any ideas why and/or how to do it?
I first I thought it was the dollar sign, but this one works:
# grep --fixed-string "foo:$ap" /var/www/htpasswd
foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/
#