O que faz | quer dizer quando diff é executado em dois arquivos?

0

Quando eu corro:

diff -y <file1> <file2>

qual é o caracter de | me dizendo?

ou seja,

Video_Codec_List : v210  |  Codecs Video : v210
    
por Bleakley 21.03.2016 / 23:40

1 resposta

2

Como explicado na documentação do GNU diffutils (usando info diffutils "output formats" "side by side" )

'|'
     The corresponding lines differ, and they are either both complete
     or both incomplete.

FYI a lista completa de marcadores é dada como

white space
     The corresponding lines are in common.  That is, either the lines
     are identical, or the difference is ignored because of one of the
     '--ignore' options (*note White Space::).

'|'
     The corresponding lines differ, and they are either both complete
     or both incomplete.

'<'
     The files differ and only the first file contains the line.

'>'
     The files differ and only the second file contains the line.

'('
     Only the first file contains the line, but the difference is
     ignored.

')'
     Only the second file contains the line, but the difference is
     ignored.

'\'
     The corresponding lines differ, and only the first line is
     incomplete.

'/'
     The corresponding lines differ, and only the second line is
     incomplete.
    
por steeldriver 21.03.2016 / 23:51