Questions tagged [filecompare]

47 questions
0
votes
2 answers

Windows fc ignore output when no difference

I am using FC filename1 filename2 >> myLog.txt(where myLog.txt exists) command under Windows to compare two files. I use the command in a loop so I could compare many pairs of files. I want to ignore the output when FC outputs: Comparing files…
Zdravko Donev
  • 394
  • 3
  • 18
0
votes
2 answers

Comparing two files by the content in their lines in Scala

I have two files in .dimacs format, eg: c example_01.cnf p cnf 6 9 1 0 -2 1 0 -1 2 0 -5 1 0 -6 1 0 -3 2 0 -4 2 0 -3 -4 0 3 4 -2 0 and, c example_02.cnf p cnf 9 6 -7 2 0 7 -2 0 -8 3 0 8 -3 0 -9 4 0 9 -4 0 I want to compare file…
user4712458
  • 71
  • 1
  • 9
0
votes
3 answers

Can we compare two JavaScript files using C#?

I have tried comparing two text files. If these contain the same data but there is a difference of even one space the result is showing as ‘different’. Can anyone tell me how to compare two JavaScript files using C#?
Hemant Kumar
  • 4,405
  • 9
  • 50
  • 91
0
votes
1 answer

compare rows in two files in unix shell script and merge without redundant data

There is one old report file residing on a drive. Everytime a new report is generated, it should be compared to the contents of this old file. If any new account row is reported in this new report file, it should be added to the old file, else…
Rimjhim
  • 11
  • 1
0
votes
1 answer

What is the best way to identify if MSI have been modified or not

In our organization, An automated script copies all MSI's from build location to a new folder inside a shared folder each time after a successful build. There are more than 150 projects. Problem I am facing is, even though only 20 projects have been…
0
votes
1 answer

Performance of File Hash algorithms

In my Perl application, I need compare two versions of a file and detect whether they have changed. I'm trying to choose between MD5 or SHA. This is not about security. This is about fastest way to compare files. I'm inclined towards MD5. However,…
0
votes
4 answers

How to compare two xml files in python in script?

I am new python. I have some predefined xml files. I have a script which generate new xml files. I want to write an automated script which compares xmls files and stores the name of differing xml file names in output file? Thanks in advance
Manu
  • 69
  • 2
  • 3
  • 7
0
votes
2 answers

Output difference of 2 txt files to a 3rd txt file

I'm trying to run a bat file that will compare 1 file to another and output the differences I've tried using gnu diff utilites, fc, and endless googleing to find a solution but I cant seem to figure it out File 1 C:\Books\Tolkien, J.R.R. - The…
Xanderu
  • 628
  • 5
  • 25
0
votes
3 answers

How to compare two files in shell script?

Here is my scenario. I have two files which are having records with each record's 3-25 characters is an identifier. Based on this I need to compare both of them and update the old file with the new file data if their identifiers match. Identifiers…
ALN
0
votes
2 answers

C# Compare a URL file with a local file

**Hello guys,i'm new in C# and i don't know how to do the following code I need to make a code that verifies 30 files from the server (URL) and 30 files from the client(folder) and then compare them byte by byte,if the client(folder) files are…
Catalin Mihai
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

In Visual Studio 2010 Folder Difference window, when I right click on file the "Reconcile" menu is disabled

I'm trying to compare 2 local folders. In source control explorer I right click folder, click "Compare" menu and select the target folder. The Folder Difference folder is displayed. I right click the file where the difference is found but the…
-1
votes
1 answer

Unix command to find lines in one file with key not found in another file

Both files are sorted and duplicates removed. I want to compare field1 from file1 to field1 of file2 and output the line from file1 that is not in file2. There is no set length for field1 and that's causing me problems using uniq. Here's an…
-1
votes
1 answer

Checking if filename exists in current directory

I have a script that I am trying to modify so that depending on the location its executed from, it will be checking to see if there is a file with the name regression_user.rpt and if so, it will make a new file called regression_user1.rpt. I've…
Javia1492
  • 820
  • 8
  • 24
-2
votes
2 answers

Comparison of the contents of two text file in Ubuntu

I have two text files with 2.4M. I like to compare what are the differences in these two text files. I used Kompare. It worked but it is slow for a big file size. Looks like never finish the comparison. What could be the best software in Ubuntu or…
batuman
  • 6,072
  • 17
  • 79
  • 178
-3
votes
2 answers

JAVA program for 2 or more text files comparing

I want to compare a 2 or more Text Files to find a duplicate entry. O/P should say those lines in files are matched or not. I want to compare the each of the File 1 lines with all lines of the File 2 (ie., Comparing File 1's line-1 with all lines of…