Questions tagged [file-comparison]

File comparison is the act of comparing one file's properties with another's.

Use this tag for questions related to comparing the size, content, etc. of two or more files.

161 questions
1
vote
2 answers

What is the best way to find common elements of multiple text files with java?

I have a program that creates multiple text files of rdf triples. I need to compare the triples and do it fast, what is the best way to do this? I thought of putting the triples into an array and comparing them but there could potentially be…
cHam
  • 2,624
  • 7
  • 26
  • 28
0
votes
2 answers

file comparison in fitnesse using java

I need to compare 2 csv files and output the results to a new file in Fitnesse using java. Please throw some light on this as I am newbie to Fitnesse. I am confused about what fixtures are to be used.
newcane
  • 285
  • 2
  • 5
  • 8
0
votes
1 answer

Comparing n number of files (binary)

I want to compare a number of files and find out which files which are the same, but they are not necessarily text files(So please don't suggest diff) The files can be in any format (ie binary files). I found out that I can run md5sum to find the…
Gautam
  • 7,868
  • 12
  • 64
  • 105
0
votes
1 answer

Speed of binary file comparisons in PowerShell

There is a lot of discussion on the Internet about how to compare files in PowerShell. For example: Comparing folders and content with PowerShell, StackOverflow, 2011 Easily Compare Two Folders by Using PowerShell, Doctor Scripto, 2011 Compare…
NewSites
  • 1,402
  • 2
  • 11
  • 26
0
votes
0 answers

Ignore the word that has been replaced into specific words when comparing the folder / file

I am using WinMerge to compare my Java source code because it is quite handy (comparing multiple folders and sub-folders, specifying the file extension you want to compare,...). However, I want to ignore (return is identical or not hightlight) with…
0
votes
1 answer

Memory management related issue while comparing files using pandas

I have below python code which compares source system file with the target system file. Both the files are comma separated but can come with extension of .txt or .csv. However, the files will be comma separated. The code tries to list out unique…
0
votes
0 answers

Getting [WinError 2] error while compressing video using FFmpeg in Django Rest Framework

I want to resize the video and picture files. so I looked for it and found FFmpeg and now I'm getting errors while compressing. TemporaryUploadedFile don't have a path when we upload. so how can I do that? Error FileNotFoundError: [WinError 2] The…
0
votes
3 answers

Get the difference of columns in 2 files and print it in the 2nd file in awk

I am trying to compare the values in 2 columns of 2 separate file and add the difference onto 2nd file in the last column like below: File 2 column 5 - File 1 column 5 --> store in column 6 of File 2 File 1: test1 data2 34 2323 433 3.32 test2 data3…
shim_mang
  • 323
  • 4
  • 17
0
votes
0 answers

How to compare different log files from terminal when FC command did not create a proper difference

I do have multiple log files( f1.txt and f2.txt) and i need to compare their output and figure out if we have any issues in the newer code version that was not existing in the previous one. For that purpose I ran the command : FC path1 path2 and…
sara
  • 109
  • 1
  • 7
0
votes
1 answer

Python Writing A Program To Read and Find The Number Of Matching Letters In 2 Files and Return This Number

Here is the code I have so far I used 2 groups of letters in 2 files, I then used index() to find the number of letters matching then len() to return the total number When I run the code I am getting this, There are 19 correct answers I was…
0
votes
5 answers

Is it a good idea to use svn and check diff in command line in Mac OSX?

I used to use svn with TortoiseSVN in Windows. And I always compared every file I modified to the old ones with WinMerge after every time I modified them. But I couldn't find a svn client like TortiseSVN and a directory/file comparison tool like…
js_
  • 4,671
  • 6
  • 44
  • 61
0
votes
2 answers

Comparing two .txt files in Python and saving exact and similar matches to .txt file

What i need is: text_file_1.txt: apple orange ice icecream text_file_2.txt: apple pear ice When i use "set", output will be: apple ice ("equivalent of re.match") but I want to get: apple ice icecream ("equivalent of re.search") Is there any way…
0
votes
1 answer

Compare two files and remove the words from the second file Python

I'm trying to compare two files and get the difference using a function. The first file contains English words - one after the other (engwrds.txt) and the second file is a text file of web scraped text (ws.txt). What I want to achieve is to compare…
0
votes
0 answers

Comparison of Files in VB.Net

We have the following code: If Not File.Exists(trancheDataPath & sDealName & ".txt") OrElse (trancheInsert <> File.ReadAllText(trancheDataPath & sDealName & ".txt")) Then File.WriteAllText(trancheDataPath & sDealName & ".txt",…
0
votes
3 answers

filecmp returns False even though files are equal

I'm trying to compare between two files with filecmp, the problem is that the result is always "No, the files are NOT the same" which means False even though the files are the same. I'm writing to two different files the same content. First I write…