I have some XML files in a directory and they all include the tag: <difficult>0</difficult>
. I just want to change that to <difficult>1</difficult>
.
I'm using the following command:
sed 's/difficult>0/difficult>1/g' *.xml
All that happens is that the full XML text of all the files gets displayed, with the difficult
tag showing a value of 1, but nothing happens to the actual files. When I open them, they still all contain <difficult>0</difficult>
.