echo "abcdef12cade 12345678 abcdefba12345678" | sed -E "s/[0-9a-fA-F]{8}/00000000/g"
the above outputs the following
00000000cade 00000000 0000000000000000
it is replacing the pattern for second occurrence in a same word. I don't want to replace if there is a second occurrence.
expected ouput
00000000cade 00000000 abcdefba12345678