I want to do a diff over two xml files but ignore 2-3 line patterns.
eg: Say I want to ignore availability & price while comparing the xml format below.
Here is what I have so far:
diff -I '^<PRICE>*' 1.xml 2.xml
<CATALOG>
<PLANT>
<COMMON>Bloodroot</COMMON>
<BOTANICAL>Sanguinaria canadensis</BOTANICAL>
<ZONE>4</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$2.44</PRICE>
<AVAILABILITY>031599</AVAILABILITY>
</PLANT>
</CATALOG>
Using the above diff, it skips the price but how do I add availability to this regex?