File: test
cat cat
dog cat
dog puppy
dog cat
Command:
sed -i 's/dog/big_dog/2' test
According to the explanation here: http://www.grymoire.com/Unix/Sed.html#uh-8 the output of the code should have been:
cat cat
dog cat
big_dog puppy
dog cat
But the file remains unchanged for me.
What am I doing wrong?