How to force diff to compare binary files
Use the --text
flag to force diff to compare files in text mode even if it thinks they are binary files:
example.sh
diff --text a.txt b.txt
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow