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
0
votes
1 answer

How to save a JavaDStream as compressed (.gz) file?

I am new to spark streaming. I am using spark-streaming 2.3.0. I have a JavaDStream, and I am saving it as a text file, but I want to save it as a compressed(.gz) file. Here is my code snipet: JavaDStream dataStreams = stream.map(new…
0
votes
1 answer

Two closely matching files: get corresponding lines?

I'm in a situation where I'm programmatically generating LaTeX code, and I want my Synctex to point to the correct lines in the original file. The generation is basically doing template expansion, so the original files are nearly identical to the…
jmite
  • 8,171
  • 6
  • 40
  • 81
0
votes
1 answer

What is the fastest method to compare two large files in Java

Currently we have a nightly automation run that does a comparison between a resulting test file produced by our software and a baseline file. This comparison is is done several times and the files are large. The file comparison is the bottle neck…
Huckleberry
  • 21
  • 1
  • 8
0
votes
1 answer

automated change management / version control

I'm looking for a tool (Windows) that indexes the contents of (clear) files in a directory and keeps a history of the changes made to these files. This could be done persistent or in batch. If possible it should include an integrated compare-tool so…
0
votes
0 answers

Before Uploading check basename and filename

How do i check the directory name and string name are equal before uploading the data into AWS S3 bucket.When i uploaded data into s3 i get error invalid data. if ($_SERVER['REQUEST_METHOD'] == "POST") { $s3 = new Aws\S3\S3Client([ …
0
votes
2 answers

JUnit: compare the contents of two unordered text files

I would like to write a unit test to compare the text file output of a method against an expected value. However, I prefer not to constrain the test to have a precise line ordering requirement in the comparison. Is there an elegant way to write…
Setjmp
  • 27,279
  • 27
  • 74
  • 92
0
votes
1 answer

Comparing two files in Python without any keys

I am new to python and have a requirement to compare files from two sources. Requirement: I should be able to compare two files and find any differences between two files.The files might be .csv, .dat and .xlsx ie) 1.Records in file1 and not in…
Samper
  • 1
  • 1
0
votes
1 answer

Comparing Two Batches of Files

I have two hard drives. Hard Drive (A) is the most recent, but is potentially missing some files from Hard Drive (B). The two drives have the same file structure, and the folders are named the same. (B) might have files that are missing from (A),…
Airgiraffe
  • 55
  • 1
  • 7
0
votes
3 answers

COMPARE 2 or more .PROPERTIES files comparing ONLY keys

I want to compare 2 or more (if posible) .properties files, exactly are i18n files. So I have the default messages_es.properties where I first add the keys with values, what I really need is to compare only the keys of the default/primary…
Xavier Garcia
  • 13
  • 1
  • 4
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…
Avah
  • 227
  • 3
  • 13
0
votes
1 answer

compare files in shell script and delta

I have 1 file name file1.txt cat file1.txt | 6| 10| | 7| 20| | 8| 41| | 10| 40| | 11| 40| | 12| 50| | 13| 70| | 15| 80| cat file2.txt: | 6| 10| | 7| …
0
votes
3 answers

Fetching rows from file_1 based on another file_2

I have a tab delimted text file as follows: file_1: A1 13f Jos + B1 zh4 Kia - C2 nh2 Met - D3 5gh Lox + F4 w4t Nit - file_2 N3 6jg Jut - J8 76d Met + A1 99g Kia - M6 45k Qox + V2 87h Nit - I would like to extract the…
Chudar
  • 374
  • 1
  • 3
  • 13
0
votes
2 answers

Batch: Redirecting FC output, parsing, and claim variables

I am attempting to use FC to compare files but would like to take the output of the FC command, parse it out, and claim variables to copy the source file over the remote file that does not match, syncing essentially. My code is really simple because…
Sid
  • 107
  • 4
0
votes
3 answers

How to convert .SFF file format to .BMP or .PNG or .JPG?

I need to convert my SFF file to PDF, then i need verify the document. i.e SFF file and converted file. For that, I think to convert SFF file to image file and PDF file to image file. Then comparing the both file using image processing. To do this…
Gokul
  • 1
  • 1
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
  • 774
  • 1
  • 8
  • 19