trying to replace a specific value in a column with sed. this is what I have but can't get it to work, replace dog with kitty if dog is in the 3rd column and bunny in the 1st column if bird is there
bird lizard fish
bird lizard dog
bird lizard fish
sed '/bird/s/^/bunny/1;'/dog/s/^/kitty/3' file
trying different iterations but just can't seem to get it to work
this would be the output
bunny lizard fish
bunny lizard kitty
bunny lizard fish