Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

(in the Linux Terminal)

I used

diff --recursive --brief dir1 dir2

and it tells me that

File dir1/file and dir2/file differ

But then, I try:

diff dir1/file dir2/file

and there is no output (which I assume means it found no differences between the files this time).... What gives?

share|improve this question

migrated from stackoverflow.com May 29 '13 at 4:59

This question came from our site for professional and enthusiast programmers.

1 Answer 1

I think your --brief is the problem ... without this option also it will only compare files with same name..

share|improve this answer
    
According to the man page, --brief only outputs whether files differ. So I don't see any connection with the OP's problem. –  mpy May 29 '13 at 9:48

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.