Что делает | значит когда diff запускается на двух файлах?

Когда я бегу:

diff -y <file1> <file2>

что | персонаж говорит мне?

т.е.

Video_Codec_List : v210  |  Codecs Video : v210

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.
Другие вопросы по тегам