From owner-freebsd-questions@FreeBSD.ORG Tue May 5 15:04:10 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 2B0C11065670 for ; Tue, 5 May 2009 15:04:10 +0000 (UTC) (envelope-from a.pirko@inode.at) Received: from mx.inode.at (mx16.lb01.inode.at [62.99.145.18]) by mx1.freebsd.org (Postfix) with ESMTP id DDA2A8FC08 for ; Tue, 5 May 2009 15:04:09 +0000 (UTC) (envelope-from a.pirko@inode.at) Received: from [84.119.8.155] (port=10299 helo=fz-sub1.local) by smartmx-16.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1M1MBj-0005eU-Sk; Tue, 05 May 2009 17:04:08 +0200 Date: Tue, 5 May 2009 17:04:17 +0200 From: Armin Pirkovitsch To: freebsd-questions@freebsd.org, Yavuz =?utf-8?Q?Ma=C5=9Flak?= Message-ID: <20090505165621inode@frozen-zone.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Re: How can I extract differences between 2 folders ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Armin Pirkovitsch List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 15:04:10 -0000 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