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.

146 questions
0
votes
2 answers

finding rows from file2 in file1 which have extended columns in file2

I have file1 as: ABC CDEF HAGD CBDGCBAHS:ATSVHC NBS JHA AUW MNDBE:BWJW DKW QDW OIW KNDSK:WLKJW BNSHW JBSS IJS BSHJA ABC CDEF CBS 234:ATSVHC DKW QDW FSD 634:WLKJW and file2: ABC CDEF HAGD CBDGCBAHS:ATSVHC:THE:123 NBS JHA AUW MNDBE:BWJW:THE:243 DKW…
AishwaryaKulkarni
  • 710
  • 1
  • 6
  • 16
0
votes
2 answers

How to Save file names and their directories path in a text file using Python

I am trying to find a string that is contained in files under a directory. Then make it to store it's file names and directories under a new text file or something. I got upto where it is going through a directory and finding a string, then…
Eric
  • 3
  • 2
0
votes
1 answer

How to display to screen a detailed report using beyond compare 3 with script?

I would like to display a detailed report to screen (not saving to output file) after using beyond compare 3 with script. Has anyone have an idea how to do achieve such behavior? Your help is welcomed :)
DeJaVo
  • 2,860
  • 2
  • 16
  • 29
0
votes
1 answer

compressing files in JAVA

My project has a requirement that I have to receive a file via a REST service(using jersey) and store it in the database. The file size will be around 2-4MB. The received file can be either zip or pdf format. Before storing in database I would like…
user3305063
  • 421
  • 1
  • 4
  • 14
0
votes
3 answers

powershell: compare specific columns of CSV files and return entire row of differences

I have 2 CSV files I'd like to compare. They both have multiple columns of different data but they also both have a column with IP addresses. Call them $log1 and $log2 I am trying to compare the files. If an IP from $log1 is found in $log2 I would…
Davey
  • 1
  • 1
  • 2
0
votes
2 answers

Unix file comparison

I have two files which has component name and version number separated by a space: cat file1 com.acc.invm:FNS_PROD 94.0.5 com.acc.invm:FNS_TEST_DCCC_Mangment 94.1.6 com.acc.invm:FNS_APIPlat_BDMap 100.0.9 com.acc.invm:SendEmail…
rKSH
  • 39
  • 8
0
votes
1 answer

Beyond Compare - Finding number of line differences rather than byte differences when using Folder Compare

So I am using Beyond Compare 4.0.7 and am comparing two folders containing different versions of a Java project. I want to find how many lines have been changed to class files in the newest project. So I filter by *.class files, view differences…
0
votes
1 answer

How to compare 2 text files (content) without loop in Java?

Is there any way to compare 2 text (ODT) files without using loops? The point is, inside a servlet, I'm receiving a file from JavaScript and I want to compare it with another stored in the server. This is what I'm doing, but it isn't working, it…
Drumnbass
  • 816
  • 1
  • 12
  • 31
0
votes
2 answers

Script to compare 2 files line by line

I have two text files: File1.txt dadads 434 43 {"4fsdf":"66db1" fdf1:"5834"} gsgss 45 0 {"gsdg":"8853" sgdfg:"4631"} fdf 767 4643 {"klhf":"3455" kgs:"4566"} . . File2.txt 8853 6437437567 36265 4566 . . Output could be two files Match.txt gsgss…
user175084
  • 4,210
  • 24
  • 108
  • 166
0
votes
1 answer

Command line comparison of 2 directories using Beyond Compare or other tool

I have 2 directories which I need to compare using a command line utility. There are 2 requirements: Not to present equal files in the output - that is, I do not want even the names of the equal files to appear in the output Possibility to ignore…
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
2 answers

Find files that are newer than another with similar name, but different extension

This is fairly simple issue that has been bothering me. A little backstory. I have a folder full of scripts. These scripts takes data files *.dat and generates output in *.eps. The extension of my scripts is *.plt. I create a one line shell script…
phollox
  • 273
  • 3
  • 11
0
votes
2 answers

Batch File Compare (FC) Output Not Working

I have two files that contain a list of files from a directory: files.txt and filesb.txt file1.txt contains the following: file1 file2 file3 file4 file5 file6 filelast While filesb.txt contains: file1 file2 file3 file4 file5 file7 filelast From…
Jordan_X
  • 19
  • 2
0
votes
4 answers

Python file string comparison

I am trying to do a string comparison between strings in two text files. The text is produced by bintext application reading from .exe and produce files with format such as below : File pos Mem pos ID Text ======== ======= …
razler
  • 1
  • 1
0
votes
2 answers

Powershell - Find out if there are two files with the same name

I'm trying to check a series of directories and subdirectories to see if there are two or more files with the same name in the same folder. I think my issue is how I'm trying to validate a string. For the following test directory: |--…
R_C_III
  • 3
  • 3