Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.34 KB

ps-diff.md

File metadata and controls

44 lines (29 loc) · 1.34 KB

PS-diff

Prescale table comparison tool

Additional requirements (optional)

Optional requirement for colored output: colordiff (on Debian/Ubuntu-based systems, install via sudo apt install colordiff)

Basic usage

Invoke a simple comparison of two existing prescale tables (in xlsx format):

bash run-ps-diff.sh PStable_left.xslx PStable_right.xslx

The xslx files can be given as local paths or as URLs (if the URLs are downloadable via wget).

Optional arguments:

  • All valid diff options are allowed (execute man diff for a list of them) as long as they are passed without any dash prefixes (i.e., do not prepend "-" or "--").
  • --by-line: perform a line-by-line comparison (default)
  • --by-name: performs a name-by-name (i.e, seed-by-seed) comparison
  • --no-color: do not colorize the terminal output

For further information on usage, run bash run-ps-diff.sh --help

Usage examples

Line-by-line comparison in two columns:

bash run-ps-diff.sh PStable_left.xslx PStable_right.xslx side-by-side

Name-by-name comparison in two columns:

bash run-ps-diff.sh PStable_left.xslx PStable_right.xslx side-by-side --by-name

Comparison in two columns, suppressing common lines:

bash run-ps-diff.sh PStable_left.xslx PStable_right.xslx side-by-side suppress-common-lines