What is “ndiff” Package?

Virtual package provided by nmap. ndiff allows you to specify absolute and relative error tolerances for differences between numerical values in the two files, and then reports only the lines with values exceeding those tolerances. It also tells you by how much they differ. Nmap, short for Network Mapper, is used by many security professionals all over the world Nmap allows for an administrator to quickly and thoroughly learn about the systems on a network, hence the name, Network MAPper or nmap.ssumes that you have two text files containing numerical values, and the two files are expected to be identical, or at least numerically similar
For more details: https://www.math.utah.edu/~beebe/software/ndiff/

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install ndiff.
    brew install ndiff

Now, use ndiff!