


SDIFF(1V)                USER COMMANDS                  SDIFF(1V)



NAME
     sdiff - contrast two text files by displaying them  side-by-
     side

SYNOPSIS
     sdiff [ -l ] [ -o _o_u_t_f_i_l_e ] [  -s  ]  [  -w  _n  ]  _f_i_l_e_n_a_m_e_1
     _f_i_l_e_n_a_m_e_2

AVAILABILITY
     This command is available with the _S_y_s_t_e_m _V software instal-
     lation  option.   Refer to _I_n_s_t_a_l_l_i_n_g _S_u_n_O_S _4._1 for informa-
     tion on how to install optional software.

DESCRIPTION
     sdiff uses the output of diff-b to  produce  a  side-by-side
     listing  of  two  files indicating those lines that are dif-
     ferent.  Each line of the two files is printed with a  blank
     gutter  between  them if the lines are identical, a < in the
     gutter if the line only exists in  _f_i_l_e_n_a_m_e_1,  a  >  in  the
     gutter  if  the  line  only exists in _f_i_l_e_n_a_m_e_2, and a | for
     lines that are different.  See EXAMPLES.

OPTIONS
     -w  _n
          Use _n as the width of the  output  line.   The  default
          line length is 130 characters.

     -l   Only print the left side of any identical lines.

     -s   Silent.  Do not print identical lines.

     -o  _o_u_t_f_i_l_e
          Use the next argument, _o_u_t_p_u_t, as the name of an output
          file  created as an interactively controlled merging of
          _f_i_l_e_n_a_m_e_1 and _f_i_l_e_n_a_m_e_2.  Identical lines of  _f_i_l_e_n_a_m_e_1
          and  _f_i_l_e_n_a_m_e_2  are  copied to _o_u_t_p_u_t.  Sets of differ-
          ences, as produced by diff, are printed; where a set of
          differences  share  a  common  gutter character.  After
          printing each set of differences, sdiff prompts with  a
          %  and  waits for you to type one of the following com-
          mands:

          l    Append the left column to the output file.

          r    Append the right column to the output file.

          s    Turn on silent mode; do not print identical lines.

          v    Turn off silent mode.

          e l  Call the ed(1) with the left column.




Sun Release 4.1  Last change: 17 September 1989                 1






SDIFF(1V)                USER COMMANDS                  SDIFF(1V)



          e r  Call ed(1) with the right column.

          e b  Call ed(1) with  the  concatenation  of  left  and
               right columns.

          e    Call ed(1) with a zero length file.

               On exit from ed(1), the  resulting  file  is  con-
               catenated to the named output file.

          q    Exit from the program.

EXAMPLES
     A sample output of sdiff would look like this:


                    x    |    y
                    a         a
                    b    <
                    c    <
                    d         d
                         >    c

SEE ALSO
     diff(1), ed(1)






























Sun Release 4.1  Last change: 17 September 1989                 2



