Giri
Giri

Reputation: 4909

How to view the file difference?

I'm having two versions of PHP scripts. I forgot which lines I modified in the new version.

I have more than 100 files. So can anyone tell me how to bulk view the difference by comparing two directories?

Thanks

PS: If you guys know any free or paid tool please let me know.

Upvotes: 1

Views: 78

Answers (3)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340743

In Unix/Mac environments:

diff -rq dirA dirB

There are plenty of command-line and GUI tools for Windows as well. Also consider using any , modern systems like and are very well suited even for a single developer.

See also:

Upvotes: 2

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 120937

You could combine a simple shell-script loop with the diff command... but yes, as Andreas AL mentioned, source control is a more robust solution to your problem.

Upvotes: 1

Anton
Anton

Reputation: 1419

One of the best paid tools : Beyond Compare 3 http://www.scootersoftware.com/

Upvotes: 1

Related Questions