Skip to main content
Add the exclamation point in the same way as the other symbols.
Source Link
Stephen Kitt
  • 481.5k
  • 60
  • 1.2k
  • 1.4k

The output of diff is formed of chunks, each chunk corresponding to a set of changes. The *************** line marks the start of such a chunk.

Each chunk gives you the context in the files. *** 1,3 **** means that what follows are line 1 to 3 in the first file, while --- 1,3 ---- means that what follows are line 1 to 3 in the second file.

A minus sign - in the first column denotes lines that have been deleted, and a plus sign + marks lines that have been added. An exclamation point ! marks lines that have changed.

If your case, peach in the first file has been changed to strawberry in the second.

The output of diff is formed of chunks, each chunk corresponding to a set of changes. The *************** line marks the start of such a chunk.

Each chunk gives you the context in the files. *** 1,3 **** means that what follows are line 1 to 3 in the first file, while --- 1,3 ---- means that what follows are line 1 to 3 in the second file.

A minus sign - in the first column denotes lines that have been deleted, and a plus sign + marks lines that have been added. An exclamation point marks lines that have changed.

If your case, peach in the first file has been changed to strawberry in the second.

The output of diff is formed of chunks, each chunk corresponding to a set of changes. The *************** line marks the start of such a chunk.

Each chunk gives you the context in the files. *** 1,3 **** means that what follows are line 1 to 3 in the first file, while --- 1,3 ---- means that what follows are line 1 to 3 in the second file.

A minus sign - in the first column denotes lines that have been deleted, and a plus sign + marks lines that have been added. An exclamation point ! marks lines that have changed.

If your case, peach in the first file has been changed to strawberry in the second.

Source Link
Satō Katsura
  • 13.7k
  • 2
  • 34
  • 52

The output of diff is formed of chunks, each chunk corresponding to a set of changes. The *************** line marks the start of such a chunk.

Each chunk gives you the context in the files. *** 1,3 **** means that what follows are line 1 to 3 in the first file, while --- 1,3 ---- means that what follows are line 1 to 3 in the second file.

A minus sign - in the first column denotes lines that have been deleted, and a plus sign + marks lines that have been added. An exclamation point marks lines that have changed.

If your case, peach in the first file has been changed to strawberry in the second.