To compare the contents of two IFS files for differences, you can use the diff command in the PASE shell. The PASE shell can be accessed from the command line using this command:


Here is an example of the diff command used to compare the php.ini to a file backed up by the upgrade installer:

diff /usr/local/zendphp7/etc/php.ini /usr/local/zendphp72020802164948/etc/php.ini

This produces an over/under comparison, with the line numbers. Here is an example of one changed line:

< variables_order = "GPCS"
> variables_order=EGPCS

This compares line 459 to 459 (459c459). The first line shown is from the first file named in the command.

A useful flag for some comparisons is -w. This ignores white space differences:

diff -w /usr/local/zendsvr/etc/php.ini /usr/local/ZendSvr20100802164948/etc/php.ini

  • No labels