【发布时间】:2015-08-25 23:48:39
【问题描述】:
我有一棵扁平线的树,例如:
a<1 and b<1 and c<1 then result=1
a<1 and b>1 and d<1 then result=2
a<1 and b>1 and d>1 then result=3
我想打印删除与前一行匹配的每个连续行的子字符串 例如,结果将是:
a<1 and b<1 and c<1 then result=1
b>1 and d<1 then result=2
d>1 then result=3
本质上,前一行和当前行之间的共同元素不会再次打印 -> 只打印两行之间的差异。
有人可以帮忙吗?
【问题讨论】:
-
必须在外壳中?你已经尝试过什么?
标签: linux unix binary-tree diff