Compare two files strictly line-by-line, without insertions or deletions
This could be an approach:
diff <(nl file1) <(nl file2)
With nl
number the lines that diff
recognizes the lines line by line.
This could be an approach:
diff <(nl file1) <(nl file2)
With nl
number the lines that diff
recognizes the lines line by line.