Forrest logo
back to the fc tool

fc:tldr:82729

fc: Compress whitespace (tabs and spaces) for comparisons.
$ fc /w ${path\to\file1} ${path\to\file2}
try on your machine

The command "fc /w ${path\to\file1} ${path\to\file2}" is used to compare the contents of two files, namely file1 and file2, located at the specified paths.

Here is a breakdown of the command:

  • "fc" stands for "file compare" and is the command used to compare two files.
  • "/w" is an option that tells the command to perform a wide (full) comparison rather than a line-by-line comparison. When using this option, whitespace differences between lines are ignored during the comparison.
  • "${path\to\file1}" represents the path to the first file that you want to compare. You need to replace this with the actual file path.
  • "${path\to\file2}" represents the path to the second file that you want to compare. Again, you need to replace this with the actual file path.

When you execute this command, it will compare the contents of file1 and file2, ignoring any whitespace differences, and display the differences between the two files, if any.

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 fc tool