The file-comparison tag has no wiki summary.
1
vote
3answers
88 views
Compare multiple files
I want a bash-script to compare OR find differences for multiple files which are stored in different locations:
Files under /tmp/test/
A.txt
B.txt
C.txt
Compare with files under /home/oldtest/
...
3
votes
3answers
190 views
How can I check if two gzipped files are equal?
I am trying to save space while doing a "dumb" backup by simply dumping data into a text file. My backup script is executed daily and looks like this:
Create a directory named after the backup date.
...
4
votes
1answer
460 views
how to compare two xml files having same data in different lines?
I have two files have same data but in different lines.
File 1:
<Identities>
<Identity>
<Id>048206031415072010Comcast.USR8JR</Id>
...
2
votes
3answers
132 views
Check whether two directories and their subdirectories are the same
With diff -r I can do this task, however it takes so long because diff checks file's content.
I want something that determine that two files are the same regarding of their size, last modified, etc. ...
2
votes
1answer
300 views
Find all folders in a directory with the same content
In Ubuntu, is there any to find duplicate folders in a directory (i. e., folders with the same content)? I think there are already some command-line tools available for finding duplicate files (such ...
2
votes
1answer
687 views
rsync compare directories?
Is it possible to compare two directories with rsync and only print the differences? There's a dry-run option, but when I increase verbosity to a certain level, every file compared is shown.
ls -alR ...
1
vote
1answer
63 views
binary compare two files, failing only if first never matches any part of the second
I have a file (call it A, for reference) that may be a fragment of some other extant file on my system. I can't use cmp because I don't know how many bytes may be missing from the start of A (or, at ...
3
votes
1answer
182 views
How to compare attributes of two files on Linux ext4
cmp(1) will of course tell me if the contents of two files are identical, but in order to test restoring from backups I also wanted to compare the relevant (!) file attributes.
So if I did something ...
4
votes
4answers
1k views
Compare two files: lines present in one, not in the other, by one column comparison
I need to compare 2 files. Column 1 is the same in both files. Column 2 is what I want to compare: I want all lines in file 1 that are not in file 2 when comparing column 2. Column 3 is different in ...
4
votes
3answers
1k views
Tool to compare 2 excel sheets in linux
I want to be able to compare 2 excel sheets in linux. I am not interested in converting them to csv format as they have a complicated formating that is not supported in csv.
I would like to be able ...
2
votes
2answers
144 views
How to determine if file is just a permutation of another one?
Consider for example a source code file, where the functions are drastically shuffled around. Is there is a command to check if the reordering of lines is the only change?
(that means no lines are ...
5
votes
4answers
470 views
Compare an old file and new file, but ignore lines which only exist in new file?
I have two files:
oldlist - This contains a list of files and a md5 hash for each file. This was generated one year ago.
newlist - This also contains a list of files and a md5 hash for each file. ...