Date: Tue, 5 May 2009 21:35:22 +0300 From: =?utf-8?Q?Yavuz_Ma=C5=9Flak?= <yavuz.maslak@netiletisim.net> To: <freebsd-questions@freebsd.org> Subject: Re: How can I extract differences between 2 folders ? Message-ID: <4D71445373A74C088A3CDBF3868278A4@desktop2002> References: <D140D3378E824AC1995B6A6503732D69@desktop2002> <20090505165621inode@frozen-zone.org>
next in thread | previous in thread | raw e-mail | index | archive | help
First I am sorry writing folders instead of files. as far as I see diff command compares differences line by line between 2 files That's to say, File a orange blue yellow File b yellow blue orange diff --suppress-common-lines -w -y a b orange < blue < > blue > orange as above you see, A and B files contains the same strings but their's lines are different I wish diff or another command not to display same values which are in different lines. > First of all I suppose you're talking about 2 files, not folders. > In which case the command you're using isn't looking so bad since it > shows the differences between file "a" and file "b": > > > diff --suppress-common-lines -w -y a b > abcde | xyasz > > But since you do not seem to be happy with the output - what should it > look like? > > Armin > > On Tue 05 May 2009, Yavuz Maşlak wrote: > >> I have two folders which contains some expressions in everyline as >> following; >> File A: >> abcde >> 12345 >> etc. >> >> File B: >> xyzas >> 12345 >> etc >> >> As above some strings are same and some strings are different. >> There are several differents between these two files. >> >> When I run diff command "diff --suppress-common-lines -y -w file1 file2 > >> fileresult" like I couldn't result right. >> How can I extract differences between 2 folders ? >> >> Which command do I need to use ? > > -- > Armin Pirkovitsch > a.pirko@inode.at > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D71445373A74C088A3CDBF3868278A4>