From owner-freebsd-questions@FreeBSD.ORG Tue May 5 18:35:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4F641065670 for ; Tue, 5 May 2009 18:35:35 +0000 (UTC) (envelope-from yavuz.maslak@netiletisim.net) Received: from pop3.ihlas.net.tr (posta.ihlasnet.com.tr [213.238.128.150]) by mx1.freebsd.org (Postfix) with ESMTP id 29F6B8FC15 for ; Tue, 5 May 2009 18:35:34 +0000 (UTC) (envelope-from yavuz.maslak@netiletisim.net) Received: (qmail 28691 invoked by uid 89); 5 May 2009 21:35:32 +0300 Received: from ihlasnetym (HELO desktop2002) (yavuz.maslak@netiletisim.net@213.238.150.220) by pop3.ihlas.net.tr with SMTP; 5 May 2009 21:35:32 +0300 Message-ID: <4D71445373A74C088A3CDBF3868278A4@desktop2002> From: =?utf-8?Q?Yavuz_Ma=C5=9Flak?= To: References: <20090505165621inode@frozen-zone.org> Date: Tue, 5 May 2009 21:35:22 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Mailman-Approved-At: Tue, 05 May 2009 19:02:11 +0000 Subject: Re: How can I extract differences between 2 folders ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 18:35:35 -0000 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"