I wonder if diff
can ignor differences in lines with a specific word (example: CET
).
Example:
9c9
< <set name="ti_zone">CET</set>
---
> <set name="time_zone">CET</set>
In this example I would like to ignore this difference...
If can do this, can you give me an example how?
diff
can do this with the-I
option:Just pipe the output through grep.
diff .... | grep -v CET