From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 14:12:37 2015 Received: (at submit) by debbugs.gnu.org; 6 Mar 2015 19:12:37 +0000 Received: from localhost ([127.0.0.1]:37816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTxfo-0007bM-3i for submit@debbugs.gnu.org; Fri, 06 Mar 2015 14:12:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48695) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTwzJ-0006UK-CY for submit@debbugs.gnu.org; Fri, 06 Mar 2015 13:28:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTwzC-0004HI-HI for submit@debbugs.gnu.org; Fri, 06 Mar 2015 13:28:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTwzC-0004HE-DP for submit@debbugs.gnu.org; Fri, 06 Mar 2015 13:28:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTwzA-0002I1-Qi for bug-diffutils@gnu.org; Fri, 06 Mar 2015 13:28:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTwz5-0004FR-QV for bug-diffutils@gnu.org; Fri, 06 Mar 2015 13:28:32 -0500 Received: from nm23.bullet.mail.gq1.yahoo.com ([98.136.217.6]:34351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTwz5-0004F7-B7 for bug-diffutils@gnu.org; Fri, 06 Mar 2015 13:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1425666506; bh=ohWFE0hy86U5fWpVanNow0QU+xucrs/20IJLdUFjLlo=; h=Date:From:Reply-To:To:Subject:From:Subject; b=DnSWxW5BS1W9x1hqiaGiyuOxNSdSocCYYEpuS6f9EHcLOPrJHDKfPtv+keTlpY6akcJ3ds3EYpasNyKViVIU3ILpPfwJ3mHqvBIVzG0WarWrjP5jfgsEw1wnAMHyG5m6zaiMuDTSlq/DMLHwLnOMjT4FtuaeV1VD4m6JDTW9lK0ZB60ihML2OqtNYbMJeXK1X/oEAKYPQha9OLSPjp5jYNGoi/HsdeEvExFAUSMeWu7Y1yLNW2rix2lOxxLL7C37vHHYXZ9DOIuchSwK6INWDq/YcZDPi+6wyCAbIos5G//9UQy57ordjgq3+CUWiwgJbCZ4/ehyaOvisfZwVYtSIg== Received: from [98.137.12.190] by nm23.bullet.mail.gq1.yahoo.com with NNFMP; 06 Mar 2015 18:28:26 -0000 Received: from [98.138.89.165] by tm11.bullet.mail.gq1.yahoo.com with NNFMP; 06 Mar 2015 18:28:26 -0000 Received: from [127.0.0.1] by omp1021.mail.ne1.yahoo.com with NNFMP; 06 Mar 2015 18:28:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 196244.59858.bm@omp1021.mail.ne1.yahoo.com X-YMail-OSG: w_I1yy4VM1l.4LdmXVFueFgjAIOtuaIsbiSIQ9hM4eCj.89bmozRnjwsJbH5IIL WwUQXmcLqNcYIDX82wYzGKq4bbinYrzr2J8eANcoPg5_RgfxkUVPyjo8VKIpZ8Ai1GNbKnYTjjpa wWeUCsknedAodAQ_v7Dp0msh7tRLHqWFmQXxUpLDCGnC.2eU5WhmKoFiCWPr9tToZ6zVklXXj7uK BKvH_1h7SWJKdt3ZWFYjixS_DnzJaDVGSPVUddAEneUpV.qWv13y.J8REzTd7sY_zDeWliLQBxQt V580m0GfCGs3qNWtyB4ecuka0S_W1v3OqJacBQuUmXq6K60H4wPHRhtYMEKgxU8RZGlgd9JX4SuF tZLb8z4NtfqekPZliKzloE2HFvaOXF0z7y1izaMlgfFu9gk2DfHVA_bmzmExeLx2KafpMRt5OFyh Q3UwbzoVzrovvDYK.0rXYyAT5MWC7QhIYlzB_F.Ku_.U_jYtupWDKek3GyadTq6UI8bUTDk0Gq1e zCy_dI975vw-- Received: by 98.138.101.163; Fri, 06 Mar 2015 18:28:25 +0000 Date: Fri, 6 Mar 2015 18:28:24 +0000 (UTC) From: H0PE To: "bug-diffutils@gnu.org" Message-ID: <1312962410.4159685.1425666504352.JavaMail.yahoo@mail.yahoo.com> Subject: Question: Two txt file difference to a new txt file? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4159684_290986130.1425666504338" Content-Length: 17866 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 06 Mar 2015 14:12:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: H0PE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ------=_Part_4159684_290986130.1425666504338 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys, =C2=A0 I'm having hard timewith diffutils and I need your help. What I've done is: -I've created a regsnapshot before installing an app (with regedit's export= function from the fullregistry) -After installing theapp I've taken another snapshot from the registry (sam= e way as above) =C2=A0 What I would like to dois to put the new information (difference) from the = second.reg file to anotherfile with diffutils. =C2=A0 So far I've figured thisout to get the cleanest way: =C2=A0 diff -n -a before.txtafter.txt >diff.txt =C2=A0 I've renamed the two regfile to txt but I doubt this would matter. =C2=A0 But my problem when Iopen diff.txt is this: Quote from diff.txt: "3424a3425,3429 > =C2=A0[ H K E Y _ L O C A L _ M A C H I N E\ S O F T W A R E \ C l a s s = e s \ * \ s h e l l e x \ C o n t e x t M e n u Ha n d l e r s \ D e s k t = o p D o c k S h e l l E x t ]=C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0[ H K E Y _ L O C A L _ M A C H I N E\ S O F T W A R E \ C l a s s = e s \ * \ s h e l l e x \ C o n t e x t M e n u Ha n d l e r s \ F e n c e = s S h e l l E x t ]=C2=A0 =C2=A0 > =C2=A0@ =3D " { 1 9 8 4 D D 4 5 - 5 2 CF - 4 9 c d - A B 7 7 - 1 8 F 3 7 = 8 F E A 2 6 4 } "=C2=A0 =C2=A0 > =C2=A0 =C2=A0 15782a15788,15799 > =C2=A0[ H K E Y _ L O C A L _ M A C H I N E\ S O F T W A R E \ C l a s s = e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 49 c d - A B 7 7 - 1 8 F 3 = 7 8 F E A 2 6 4 } ]=C2=A0 =C2=A0 > =C2=A0@ =3D " F e n c e s S h l E x t=C2=A0 C l a s s "=C2=A0 =C2=A0 > =C2=A0" D i s a b l e P r o c e s s Is o l a t i o n " =3D d w o r d : 0 = 0 0 0 0 0 0 1=C2=A0 =C2=A0 > =C2=A0" L o c a l i z e d S t r i n g" =3D " F e n c e s "=C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0[ H K E Y _ L O C A L _ M A C H I N E\ S O F T W A R E \ C l a s s = e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 49 c d - A B 7 7 - 1 8 F 3 = 7 8 F E A 2 6 4 } \ D e f a u l t I c o n ]=C2=A0 =C2=A0 > =C2=A0@ =3D " C : \ \ P r o g r a m=C2=A0 F i l e s \ \ S t a r d o c k \= \ F e n c e s \ \ F e n c e s M e n u .d l l , 0 "=C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0[ H K E Y _ L O C A L _ M A C H I N E\ S O F T W A R E \ C l a s s = e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 49 c d - A B 7 7 - 1 8 F 3 = 7 8 F E A 2 6 4 } \ I n p r o c S e r v e r 3 2]=C2=A0 =C2=A0 > =C2=A0@ =3D " C : \ \ P r o g r a m=C2=A0 F i l e s \ \ S t a r d o c k \= \ F e n c e s \ \ F e n c e s M e n u .d l l "=C2=A0 =C2=A0 > =C2=A0" T h r e a d i n g M o d e l" =3D " A p a r t m e n t "=C2=A0 =C2=A0 > =C2=A0 =C2=A0" =C2=A0 Issues I got -and Ican't figure out-: 1.)How to get rid ofthe=C2=A0> =C2=A0characters from the beginning -so diff= util wouldn't evenwrite it to there in the first place-? 2.)I dont want toinclude diffutil difference notes to the file (e.g.:=C2=A0= 3424a3425,3429) 3.)Why diffutil addspaces after every damn character? I can't figure out ho= w to get rid of this-so diffutil wouldn't add a space after every character= - =C2=A0 What I really need is totake the difference, put it in a new file, without = changing anything, so I canuse that information later through a reg file (d= elete, add, whatever)? =C2=A0 Waiting for youranswers, H0PE ------=_Part_4159684_290986130.1425666504338 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hi guys,
 
I'm having hard time with diffutils and I need your help. What I've done is:
-I've created a reg snapshot before installing an app (with regedit's export function from the full registry)
-After installing the app I've taken another snapshot from the registry (same way as above)
 
What I would like to do is to put the new information (difference) from the second.reg file to another file with diffutils.
 
So far I've figured this out to get the cleanest way:
 
diff -n -a before.txt after.txt >diff.txt
 
I've renamed the two reg file to txt but I doubt this would matter.
 
But my problem when I open diff.txt is this:
Quote from diff.txt:
"3424a3425,3429
>  [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ C l a s s e s \ * \ s h e l l e x \ C o n t e x t M e n u H a n d l e r s \ D e s k t o p D o c k S h e l l E x t ] 
 
>  
 
>  [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ C l a s s e s \ * \ s h e l l e x \ C o n t e x t M e n u H a n d l e r s \ F e n c e s S h e l l E x t ] 
 
>  @ = " { 1 9 8 4 D D 4 5 - 5 2 C F - 4 9 c d - A B 7 7 - 1 8 F 3 7 8 F E A 2 6 4 } " 
 
>  
 
15782a15788,15799
>  [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ C l a s s e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 4 9 c d - A B 7 7 - 1 8 F 3 7 8 F E A 2 6 4 } ] 
 
>  @ = " F e n c e s S h l E x t   C l a s s " 
 
>  " D i s a b l e P r o c e s s I s o l a t i o n " = d w o r d : 0 0 0 0 0 0 0 1 
 
>  " L o c a l i z e d S t r i n g " = " F e n c e s " 
 
>  
 
>  [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ C l a s s e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 4 9 c d - A B 7 7 - 1 8 F 3 7 8 F E A 2 6 4 } \ D e f a u l t I c o n ] 
 
>  @ = " C : \ \ P r o g r a m   F i l e s \ \ S t a r d o c k \ \ F e n c e s \ \ F e n c e s M e n u . d l l , 0 " 
 
>  
 
>  [ H K E Y _ L O C A L _ M A C H I N E \ S O F T W A R E \ C l a s s e s \ C L S I D \ { 1 9 8 4 D D 4 5 - 5 2 C F - 4 9 c d - A B 7 7 - 1 8 F 3 7 8 F E A 2 6 4 } \ I n p r o c S e r v e r 3 2 ] 
 
>  @ = " C : \ \ P r o g r a m   F i l e s \ \ S t a r d o c k \ \ F e n c e s \ \ F e n c e s M e n u . d l l " 
 
>  " T h r e a d i n g M o d e l " = " A p a r t m e n t " 
 
>  
 "
 
Issues I got -and I can't figure out-:
1.)How to get rid of the >  characters from the beginning -so diffutil wouldn't even write it to there in the first place-?
2.)I dont want to include diffutil difference notes to the file (e.g.: 3424a3425,3429)
3.)Why diffutil add spaces after every damn character? I can't figure out how to get rid of this -so diffutil wouldn't add a space after every character-
 
What I really need is to take the difference, put it in a new file, without changing anything, so I can use that information later through a reg file (delete, add, whatever)?
 
Waiting for your answers,
H0PE
------=_Part_4159684_290986130.1425666504338-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 19:04:49 2015 Received: (at control) by debbugs.gnu.org; 7 Mar 2015 00:04:49 +0000 Received: from localhost ([127.0.0.1]:37961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU2Ea-0006Q4-ML for submit@debbugs.gnu.org; Fri, 06 Mar 2015 19:04:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41341) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU2EY-0006Ps-6B; Fri, 06 Mar 2015 19:04:47 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2704irM003916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 6 Mar 2015 19:04:44 -0500 Received: from [10.3.113.113] (ovpn-113-113.phx2.redhat.com [10.3.113.113]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2704iKE012679; Fri, 6 Mar 2015 19:04:44 -0500 Message-ID: <54FA409B.1090609@redhat.com> Date: Fri, 06 Mar 2015 17:04:43 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: H0PE , 20018-done@debbugs.gnu.org Subject: Re: [bug-diffutils] bug#20018: Question: Two txt file difference to a new txt file? References: <1312962410.4159685.1425666504352.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1312962410.4159685.1425666504352.JavaMail.yahoo@mail.yahoo.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eD29OWcM9NT49wST09aJeOf9b4bsJEed4" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eD29OWcM9NT49wST09aJeOf9b4bsJEed4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 20018 notabug thanks On 03/06/2015 11:28 AM, H0PE wrote: > Hi guys, >=20 >=20 > =20 > I'm having hard timewith diffutils and I need your help. What I've done= is: [Your mail is hard to read in plain text, due to missing spaces in various places. Writing html mail is frowned upon in technical lists, and doing the mail in plain text to begin with can avoid some embarrassment when the list automatically converts your html into plain text.] > =20 > diff -n -a before.txtafter.txt >diff.txt This creates a binary diff in ed-script format. > Issues I got -and Ican't figure out-: >=20 > 1.)How to get rid ofthe > characters from the beginning -so diffutil w= ouldn't evenwrite it to there in the first place-? You don't. The output is correct for what you asked for. Rather, it sounds like you DON'T want to do a binary diff, but instead want to do a content-specific diff. That is, using diffutils is the wrong tool for what you appear to want. There are other tools, such as hivex (low-level) and virt-win-reg (built on top of hivex, which formats a hive file into a registry file), that are better equipped to read registry files _as structured data_, rather than diffutils' approach of a raw binary byte stream. Using tools like this can generate usable registry scripts that represent the difference between two hive files. For a demonstration, read Rich Jones' blog: https://rwmj.wordpress.com/2011/06/05/tip-using-a-backing-file-to-record-= file-and-registry-changes-part-3/ >=20 > 2.)I dont want toinclude diffutil difference notes to the file (e.g.: 3= 424a3425,3429) Again, it sounds like you are using the wrong tool. >=20 > 3.)Why diffutil addspaces after every damn character? I can't figure ou= t how to get rid of this-so diffutil wouldn't add a space after every cha= racter- That's because the hive format uses UTF-16 characters (where ASCII characters are represented by the two-byte sequence of the ASCII byte and a NUL byte, which your viewer is rendering as a space). When using diffutils to compare hive files, you are seeing raw UTF-16 streams, and NOT the typical registry files (which can be written in pure ASCII). As you have not demonstrated any bug in diffutils, I'm closing this bug report. Hopefully, by pointing you at higher level tools more suited to your task, I've helped you figure out the difference between binary diffs (diffutils' specialty) and structured diffs (hivex' specialty). Good luck, and feel free to ask more questions on the topic even though the bug is closed, although the answer on this list may merely be redirecting you over to the hivex list. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --eD29OWcM9NT49wST09aJeOf9b4bsJEed4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU+kCbAAoJEKeha0olJ0NqnY4H/3Ctzwn5A38090iKH8JdAkqw 4rnZskiTpzZj40VA7lPYv2Kapko6U7ZdvDrxhO2PKnyYYFihziLm1fZx39C1CB70 L+8uSkR0oE5yhEPuezDw0zUETz86TAuaaNizXU+d8rTKx0ZX3kLKZhnqkUEUmiv/ VAVGl+CpiQ1d0nkqv3sQnN/O138vAw45kNgEZNXdq/vpf76LmbvYGPqePP7Pg1Pm S3wQdYzElGn2TwZavvIL2O8wCAxzoMH0YXGMcQdPz0kKb4NQ3xp8A5r6wbljG1A+ ztQhlMd1IedGsk1vhbTetvH9tA1OiLtQ5Ey0cxxD211p3Q76b4x5DxXmWIrla7w= =h4rL -----END PGP SIGNATURE----- --eD29OWcM9NT49wST09aJeOf9b4bsJEed4-- From unknown Sun Jun 22 07:34:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Apr 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator