I can't seem to quite figure this out...
I need to use grep and sed to alter the following string in a specific xml file
<column-def-properties db-column-name="ITEM_ID" ...BUNCH OF STUFF HERE... visibility="never-visible" ...MORE JUNK HERE...>
I need to just change the part that says
The one key to this is that there are other XML elements that also have this atribute, so I can not make this a global change.
Currently I have the command
grep -lr "<column-def-properties db-column-name=\"ITEM_ID\"*$visibility" test.xml | xargs sed -i -e 's/visibility=\"never-visible\"/visibility=\"visible\"/'
which is replacing ALL rather than just the one occurance I want...