Fill these in once
- Show what changed
diff -u old.txt new.txtLines starting with - are only in the first file. Lines starting with + are only in the second.
- Just check whether they differ
diff -q old.txt new.txtNo output means they're the same.
- See it side by side
diff -y old.txt new.txt - Colours and word-by-word changes (needs Git)
git diff --no-index --word-diff old.txt new.txt
- Show what changed
diff -u old.txt new.txtLines starting with - are only in the first file. Lines starting with + are only in the second.
- Just check whether they differ
diff -q old.txt new.txtNo output means they're the same.
- See it side by side
diff -y old.txt new.txt - Colours and word-by-word changes (needs Git)
git diff --no-index --word-diff old.txt new.txt
- Show what changed
Compare-Object (Get-Content old.txt) (Get-Content new.txt)<= marks lines only in the first file. => marks lines only in the second. No output means they're the same.
- Line-by-line comparison
fc.exe old.txt new.txt - Colours and word-by-word changes (needs Git)
git diff --no-index --word-diff old.txt new.txt