Diff output from two programs without temporary files

后端 未结 6 940
梦谈多话
梦谈多话 2021-01-29 18:13

Say I have too programs a and b that I can run with ./a and ./b.

Is it possible to diff their outputs without first w

6条回答
  •  花落未央
    2021-01-29 18:48

    Adding to both the answers, if you want to see a side by side comparison, use vimdiff:

    vimdiff <(./a) <(./b)
    

    Something like this:

    enter image description here

提交回复
热议问题