current position:Home>When diff compares the contents of files, the comparison results show that the contents of files are different, but no difference is found. How can we ignore this difference?

When diff compares the contents of files, the comparison results show that the contents of files are different, but no difference is found. How can we ignore this difference?

2022-01-26 23:07:26 CSDN Q & A

The phenomenon and background of the problem

img

Operation results and error reporting contents
My solution ideas and tried methods

Why does this happen , How can we ignore this difference

What I want to achieve



Refer to the answer 1:

Ahead <.> not ?




Refer to the answer 2:



Refer to the answer 3:

Do you have this file in windows Edited by ?
You need to use format conversion instructions , First convert them into linux The format below
Otherwise, some end with \n, There are plenty of them \r\n, It must be different




Refer to the answer 4:



Refer to the answer 5:

window The coder in is the same as linux Different in , So if win Modify the configuration file in , Or use related md Class software , for example : notepad+++, sublime test , etc.




Refer to the answer 6:



Refer to the answer 7:

img

img

I think the format is the same How to see if it's in different formats




Refer to the answer 8:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201262307245432.html

Random recommended