Что делает |, означают, когда разность выполняется на двух файлах?

Когда я работаю:

diff -y <file1> <file2>

что | символ говоря мне?

т.е.

Video_Codec_List : v210  |  Codecs Video : v210
0
задан 22 March 2016 в 03:03

1 ответ

Как объяснено в документации GNU diffutils (использующий info diffutils "output formats" "side by side")

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

к вашему сведению полный список маркеров дан как

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.
2
ответ дан 29 September 2019 в 09:56

Другие вопросы по тегам:

Похожие вопросы: