selective diff and patch
Hi,
I'm trying to use diff with the "-I regexp" option but it doesn't work as it should. I have two files and I want to modify one of them but leave some of the lines unchanged. File "input.xml" is a file that from time to time gets modfied. Code:
<root> Code:
<root> Code:
diff input.xml template.xml -I custom The desired new template.xml whould be: Code:
<root> Thanks |
An excerpt from info diff
Quote:
|
conclusion
Thanks for your reply. It really helped me.
I inversed the "name" and "custom" tags so there were no changes in the vecinity of "custom" and the result is as expected. "Custom" is left untouched and "missing" is inserted. I guess I should make a habbit reading info pages also not just the man :). Thanks again. |
All times are GMT -5. The time now is 08:31 AM. |