1

How to diff two folders to multiple patch files

view story
linux-howto

http://askubuntu.com – I'm not much of a unix guy so I'll just go ahead and ask: I have a following problem - two folders with plenty of subfolders. I need to diff them. I tried this: diff -drupN vanila_kernel_3.0.8 my_kernel_3.0.8 > kernel.patch and that results in a 85mb file... and not really what I want. I want the result of the diff to be many smaller patches, ideally one for every changed file with the contents of the change. That means I have t ochange the way I use diff, and I need to put it in some sort of a loop... So i tried running this little script for file in original_308/*.*; do diff -d (HowTos)