What does this print?
echo "cat cat cat" | sed 's/cat/dog/'
dog cat catdog dog dogcat cat dogdog
Without the
Play Linux CLI ▸
g flag, s/// replaces only the first match on each line.