Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 4. Text Processing - Обработка текста
addhead | addtail | count | difflines | filter | head | joinlines | linelen | load | ofilter | perline | printloop | replace | run | runloop | snapto | sort | strings | tail | xed | xex | xreplace |

Help:   Рус   |   Eng        

Команда: difflines
sfk [t]difflines [opts] [file1] file2

   compare text lines of two files or variables.
   from both files, the text content is loaded,
   sorted, and redundant lines are removed.
   then differing lines are shown, prefixed:

     >   means lines were added   in file2
     <   means lines were removed in file2

   chaining support
      use tdifflines to use text from a previous
      command in the command chain.

   options
      -fromvar   use variables instead of files.
      -i         read file1 text from stdin,
                 and  file2 text from file.
      -withsame  also show lines found in both,
                 prefixed by "-".
      -swap      use file2 as first input
                 and file1 as second input.
      -quiet     do not tell statistics.
      -nocol     disable color output.

   examples
      sfk difflines in1.txt in2.txt
         compare two files
      sfk difflines -fromvar a b
         compare two variables