SyntaxFix
Write A Post
Hire A Developer
Questions
Obvious caveats aside, if your array was actually like the one above, you could do
if [[ ${arr[*]} =~ d ]] then do your thing else do something fi