is there a one line solution to editing a specific, nested line of a file, using linux cmnd line, where the text to be edited appears several times?

#i want to edit "value A" but both "something"s are identical. is there a Linux method to do this in one line?#

block 1 {
something = value A
block 2 {
something = value B
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum