Pocket Theories

Diff

Updated: September 2, 2024


diff -u file1.txt file2.txt > file2.patch  # "-u" is for a unified diff format
patch -l file2.txt file2.patch  # "-l" is to ignore whitespace differences
	  
Diff can ignore whitespaces with "-w".