1

how to run recursively diff command for comparing files of file size more than 2GB in solaris?

suresh
  • 241
  • 1
  • 4
  • 9

1 Answers1

1

In Solaris diff is largefile safe but not largefile aware so it can't handle files >2Gb. Solaris has the bdiff command that may help you.

alanc
  • 1,500
  • 9
  • 12
user9517
  • 115,471
  • 20
  • 215
  • 297
  • 1
    You can also just use GNU diff, which is already installed as gdiff on many Solaris systems. – alanc Dec 04 '10 at 21:36
  • @alanc: OpenSolaris has gdiff but I don't think Solaris does by default. – user9517 Dec 04 '10 at 22:06
  • GNU diff does come on the Solaris 10 companion disk. It's under /opt/sfw/bin/gdiff which may not be in your search path. – JOTN Dec 08 '10 at 01:43