Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
What do you want to do recursively ? –  Iain Dec 4 '10 at 19:58

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
1  
You can also just use GNU diff, which is already installed as gdiff on many Solaris systems. –  alanc Dec 4 '10 at 21:36
    
@alanc: OpenSolaris has gdiff but I don't think Solaris does by default. –  Iain Dec 4 '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 8 '10 at 1:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.