
Compare and merge two files using WinMerge قارن ودمج اثنين من الملفات باستخدام WinMerge
Posted on November 17, 2008 at 5:54 am تنشر على 17 تشرين الثاني / نوفمبر ، 2008 في 5:54 صباحا
If you have been on a situation wherein you need to compare two large text files or folders then this tutorial is for you. In this example, given two almost identical text files, I will show you how to determine the lines that have a mismatch. وإذا كان لديك كان على الحالة حيث كنت في حاجة إلى المقارنة بين اثنين الكبيرة ملفات نصية أو مجلدات ثم هذا البرنامج التعليمي هو لك. وفي هذا المثال ، نظرا لاثنين متطابقة تقريبا نص الملفات ، وسوف تظهر لك كيفية تحديد الخطوط التي وعدم التوافق.
In a manual brute force scenario, this is painstakingly difficult to do especially for large text files. The free tool is called WinMerge and you can get it from في دليل سيناريو القوة الغاشمة ، وهذا هو بشق الأنفس من الصعب القيام بذلك وخاصة بالنسبة للملفات نصية كبيرة. الحرة أداة يسمى WinMerge ويمكنك الحصول عليه من http://winmerge.org/ . It is called WinMerge because it runs in Windows and it lets you merge the content of your files (ie you want to use the newer version of the text file). . ومن دعا WinMerge لأنه يتعارض مع أنها في ويندوز ويتيح لك دمج محتوى الملفات الخاصة بك (أي كنت تريد استخدام النسخة الأحدث من ملف النص).
You can begin comparing two files by going to the Open menu: يمكنك أن تبدأ المقارنة بين اثنين من الملفات عن طريق الانتقال إلى القائمة المفتوحة :
You will be asked to enter the file names. The file you entered on the left will appear on the left side of the screen while the right will appear on the opposite side. The idea is to compare the two files side by side: سوف يطلب منك الدخول إلى ملف أسماء. الملف الذي أدخلته على اليسار سوف تظهر على الجانب الأيسر من الشاشة في حين أن الحق سوف تظهر على الجانب المقابل. الفكرة هي المقارنة بين اثنين من الملفات جنبا إلى جنب :
Press ok after entering the filenames. In this case I entered two files called 1.epj and 2.epj which are plain text files. اضغط على موافق بعد دخول أسماء الملفات. وفي هذه الحالة أنا دخلت اثنين من الملفات ودعا 1.epj و2.epj التي هي ملفات نص عادي.
Once you click OK, it will process the two files quickly and display the side-by-side comparison like below: وبمجرد النقر فوق موافق ، وسوف عملية البلدين الملفات بسرعة وعرض جنبا الى جنب مقارنة مثل أدناه :
The leftmost side, called Location Pane, contains a scaled “map” of the text file where you can see 3 yellow lines where the relative position of the mismatches are. This is very usable so you can navigate to the mismatches quickly. You can click any part of the Location Pane to jump to that part of the file. فإن أقصى اليسار الجانب ، ودعا الموقع لوح الزجاج ، ويتضمن حجم "الخريطة" من النص ملف تستطيع أن ترى 3 خطوط صفراء حيث الوضع النسبي للهي عدم التطابق. وهذا هو غاية قابلة للاستخدام حتى يمكنك التوجه إلى عدم التطابق بسرعة. يمكنك النقر أي جزء من الموقع لوح الزجاج الى القفز الى ذلك الجزء من الملف.
The main window will show the two files side-by-side and from this interface it is very easy to see where the mismatches are. النافذة الرئيسية سوف تظهر اثنين من الملفات جنبا إلى جنب وهذا التفاعل من أنه من السهل جدا أن نرى فيها هي عدم التطابق.
The View menu offers some functionality that you might find useful: في القائمة عرض بعض العروض الوظيفية التي قد تكون مفيدة لك :
For people working with UNIX scripts, the white spaces are important. You can use the View Whitespace option to be able to view the whitespace. The white spaces will appear as a tick-like character: الناس الذين يعملون مع ليونيكس مخطوطات ، المساحات البيضاء هامة. يمكنك استخدام الخيار اعرض مسافة بيضاء لنكون قادرين على النظر إلى بيضاء. المساحات البيضاء سوف تبدو وكأنها مثل القراد الطابع :
If your boss or programs (ie UNIX scripts) are sensitive to white spaces, this is an excellent tool to determine where those “invisible” spaces are. وإذا كان رئيسك أو برامج (أي يونيكس مخطوطات) هي حساسة لمساحات بيضاء ، هذا هو أداة ممتازة لتحديد حيث تكون هذه "غير مرئية" الأحواز.
Upon determining the differences, there are times that we need to merge the files. In this case I can replace the line from the left with the line from the right using the replace buttons: ولدى تحديد الاختلافات ، وهناك أوقات أننا في حاجة إلى دمج الملفات. وفي هذه الحالة أنا يمكن أن يحل محل الخط من الجهة اليسرى من خط مع الحق في استخدام استبدال الأزرار :
You can use the button to replace a line on the left side by the line on the right side (or vice versa). يمكنك استخدام الزر ليحل محل الخط على الجانب الأيسر من جانب الخط على الجانب الأيمن (أو العكس بالعكس).
After clicking the button, the mismatch will disappear (after it “merged” the line): بعد النقر على الزر ، وعدم التوافق سوف يختفي (بعد أن "دمج" الخط) :
Overall, WinMerge is one powerful dif tool. وعموما ، WinMerge هو أداة للتنمية المتكاملة للأسرة واحدة قوية. It is easy to use and should be good enough for most file and folder comparison. It’s merging capability also helps most writers who need to use a new version of a certain portion of a document. ومن السهل استخدام وينبغي أن تكون جيدة بما يكفي بالنسبة لمعظم ملف مجلد والمقارنة. انها قدرة دمج يساعد أيضا معظم الكتاب الذين يحتاجون إلى استخدام نسخة جديدة من جزء معين من وثيقة من وثائق.
Ben Carigtan writes about technology, computers, websites and how to get the best out of them. بن Carigtan يكتب عن التكنولوجيا ، والحواسيب ، والمواقع الشبكية وكيفية الحصول على أفضل للخروج منها.
» Filed Under »المقدمة بصورة مشتركة بموجب أحكام Computer Tips نصائح الكمبيوتر
Save this page احفظ هذه الصفحة | Stir it up on Mixx اثارة الامر على Mixx | |
Add to Reddit أضف إلى [بلوجم] |
Related Posts الوظائف ذات الصلة
- Combine or merge multiple text files using TXTCollector دمج أو الجمع بين عدة ملفات نصية باستخدام TXTCollector
- PDFHammer - Edit, merge, reorder PDF files online PDFHammer -- تحرير ، دمج ، إعادة تنظيم قوات الدفاع الشعبي الملفات على الانترنت
- How to hide files and folders in Windows XP - The easy way كيفية اخفاء الملفات والمجلدات في ويندوز إكس بي -- طريقة سهلة
- How to merge multiple pictures or images to create the perfect group shot كيفية دمج عدة صور او صور لتهيئة الكمال فريق النار
- Make your own Simpson character جعل سمبسون الطابع الخاص بك






















