![]() ![]() I was only able to test this on CentOS 6.4, but AFAIK it should work the same in Ubuntu 12.04.ĮDIT: I should note that smithian's answer is undoubtedly better, but I wanted to take a stab at doing it with your original rsync command in tact since it was giving you the desired output. In other words, it avoids creating folder3/folder1/. While in Linux, you can have 2 files with the same name in the same directory. WinMerge can compare both folders and files, presenting differences in a visual text. This is the slower option, but I believe it meets your requirements, and it could be executed using non-relative directory names: rsync -rcnC -out-format="%n" folder1/ folder2/ |grep -vP "/$" |xargs -I, ignoring folder1/. (2) cmp: This operation compares two files character by character and will return either all files with different letters (or the ones with an 0 at the end). He can store his personal files and directories in the directory /home/tom. WinMerge is an Open Source differencing and merging tool for Windows. I am going to highlight my favorite tool Meld in this week’s Linux application highlight. That's the simplest form I could come up with, if you're willing to first descend into folder1 before issuing the command. There are several GUI diff tools available for Linux to compare files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |