How do I do a one way diff in Linux?

后端 未结 3 1599
渐次进展
渐次进展 2021-01-13 00:54

How do I do a one way diff in Linux?

Normal behavior of diff:

Normally, diff will tell you all the differences between a two files. For e

3条回答
  •  既然无缘
    2021-01-13 01:14

    diff A B|grep '^<'|awk '{print $2}'

    grep '^<' means select rows start with <

    awk '{print $2}' means select the second column

提交回复
热议问题