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

PowerShell: How to get cmd comp to run quietly?

I want to test the results of both the cmd commands comp and FC running in PowerShell on a series of files. I have succeeded in getting FC to run quietly in a script and yield correct results. In a cmd batch file, comp can run quietly by prefixing…
NewSites
  • 1,402
  • 2
  • 11
  • 26
2
votes
0 answers

How to compare AT&T-assembly-like sources (e.g. CUDA PTX)?

I want to compare two pieces of low-level code, each in its own file. The format is AT&T-Assembly-style: For me, it's two CUDA PTX files, but this question applies also for the output of gcc -S or clang -S. For the sake of discussion assume that…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
2
votes
2 answers

React JS File/Video compressor

Is there any library available for File or Video compressor in react JS or javascript? If unavailable, suggest an alternative way to resize file size or video size before upload.
2
votes
2 answers

Code is working slow - performance issue in python

I have file which has 4 columns with, separated values. I need only first column only so I have read file then split that line with, separated and store it in one list variable called first_file_list. I have another file which has 6 columns with,…
Vinkesh Shah
  • 127
  • 1
  • 1
  • 11
2
votes
1 answer

Trying to find if an element in one file exists in another file

Im still new to python so ill try my best to explaining what I have done So basically my code asks the user for input it then imports a text file which contains words and each word is in a separate line, my code then store the users input in a…
Salman
  • 21
  • 1
2
votes
0 answers

Is there a way to display the progress of filecmp.dircmp in Python?

I would like to have a progress bar like tqdm or progress that is changing as dircmp is comparing two directories for left_only, right_only and diff_files. Is this possible? I have tried to use tqdm with a for loop and writing them to a list but it…
PaddyBomb
  • 21
  • 3
2
votes
2 answers

How to create a os.walk() function which compares the folders and subfolders of two directories?

here‘s my problem: Let‘s say I want to create a file syncing function that goes through all the folders and subfolders of two similar directories and detects all the common folders/subfolders of those two directories. I gave it a try by combining…
2
votes
2 answers

compare two files at key level (id) and display the differences at column level

I am looking for a way to compare two files at a key level (id) and display the changes at the column level file_1.txt id|description|name|date 1|Row 1|a|2019-06-15 00:20:15:00 2|Row 2|b|2019-06-16 15:18:10:00 3|Row 3|c|2019-06-17…
2
votes
2 answers

XSLT: XPath comparison between two files

I would like to compare two XML-files via XSLT. The comparison should be considered to be successful if all elements of a specific type in document 1 are located at the same XPath position in document 2. Consider
Matt
  • 23
  • 3
2
votes
5 answers

Large text file editor with compare feature?

I'm trying to compare 2 large text files around 500MB each, I've tried to use Notepad++, Textpad, VIM etc and couldn't get them to even open the text file. Either that, or the editors that DO work don't have the compare feature. I need to see what…
Ricky
  • 21
  • 1
  • 2
2
votes
1 answer

Compare two versions of the same folder and get names of files that differs

Suppose I have following simplified files structure main_folder |__ foo.json | |__ sub_folder |__bar.json I have two copies of the main_folder, e.g. main_folder_v1 and main_folder_v2 I want to compare both versions and get…
Andersson
  • 51,635
  • 17
  • 77
  • 129
2
votes
1 answer

How to compare file sizes for two different dates in Linux by using Python3

I'm a newbie in python and I will backup my server data everyday. I use shell script to check my backup dates, but when the Web Host become more and more using shell script need to change a lot. So, I want to use python to check my backup file. My…
Kai Kudou
  • 73
  • 1
  • 6
2
votes
1 answer

NSFileManager contentsEqualAtPath:andPath: compare checksum data

Does the NSFileManager method contentsEqualAtPath:andPath: create a dynamic checksum to compare two files, does it open the file header and compare file header details or does it use some other method for comparing? I have a list of 200,000 or so…
Hooligancat
  • 3,588
  • 1
  • 37
  • 55
2
votes
2 answers

How do write filecmp's report_full_disclosure() to a text file?

I'd like to output a series of dircmp report_full_disclosure()'s to a text file. However the report_full_disclosure() format is one blob of text, it doesn't play nicely with file.write(comparison_object.report_full_disclosure()) because file.write()…
Dylan Pierce
  • 4,313
  • 3
  • 35
  • 45
2
votes
5 answers

C# file comparison utility

Can you recommend a good file comparison utility that is able to handle C# very well. I have tried both WinMerge, BeyondCompare and KDiff and they are not good enough, e.g. if I have functions with the same name but placed in different areas of the…
kjv
  • 11,047
  • 34
  • 101
  • 140
1 2
3
10 11