diff如何忽略空格和空白字符

这两个参数都要打开:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
diff -w -B ./file1 ./file2
diff -w -B ./file1 ./file2
diff -w -B ./file1 ./file2
  • -B, --ignore-blank-lines ignore changes where lines are all blank
  • -w, --ignore-all-space ignore all white space

Leave a Reply

Your email address will not be published. Required fields are marked *