[TYPO3-dev] How do I compare multiple files using diff?
Martin Kutschker
martin.kutschker-no at spam-blackbox.net
Mon Jun 2 14:52:05 CEST 2008
Christopher schrieb:
> Hi guys,
>
> at the moment I am using the following line to compare differences between 2
> files:
>
> <?php
> exec("diff -u $oldFile_1 $newFile_1 > $output_1");
> ?>
> (I don't have shell-access available.)
>
> Now I want to compare twice two files or three times two files (not whole
> folders!) AND want the result in just ONE otput file.
> How do I achieve this?
You could do something like this exec("diff -u $oldFile_1 $newFile_1 >
$output; diff -u $oldFile_2 $newFile_2 >> $output");
Masi
More information about the TYPO3-dev
mailing list