Using the Ubuntu 12.04 and vim 2.22.0, why inside the vim I shall use:
:9s/\d\+/1/
to change first digit of the mentioned line to 1, but couldn't be able to use the same with sed as :
sed -i '9s/\d\+/1/' /home/file/foo
I still don't get any error neither any changes in the file. Do we have any inconsistency between the functionalities of vim and sed command ?