Forrest logo
back to the diff tool

diff:tldr:bd06d

diff: Compare files, ignoring white spaces.
$ diff --ignore-all-space ${old_file} ${new_file}
try on your machine

The command "diff --ignore-all-space ${old_file} ${new_file}" is used to compare the contents of two files, specifically the old_file and new_file, and find the differences between them.

The "--ignore-all-space" option in the command is used to ignore all white spaces (spaces, tabs, and line breaks) when comparing the files. It means that any differences caused by changes in white spaces between lines will be disregarded.

By running this command, you can see a list of lines that differ between the old_file and new_file, excluding any white space changes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the diff tool