diff
Eamonn Sullivan
eamonn.sullivan at gmail.com
Tue Jan 9 15:19:02 UTC 2007
On 1/9/07, Emil Edeholt <emil at knmedical.se> wrote:
> Hi,
>
> Sorry if this is off topic. I hope I can get an answer.
>
> I'm trying to compare an new version of a php-script that I have locally
> on my ubuntu machine and an older version of the script on my ubuntu
> server but when I try to run diff on the files I just get the whole two
> files listed after each other, like no lines would be the same, but
> probably 90-95% of the files are the same. What could have happened that
> makes diff do this? I've tried to change the encoding on the files with
> no result. What else could be wrong?
One thing to check is whether one file uses DOS/Windows (or Mac) line
endings, which are different than on Unix. This used to be a problem I
encountered frequently (longer ago than I care to admit). Maybe try
the --ignore-all-space option on diff?
-Eamonn
More information about the ubuntu-users
mailing list