Skip to main content

Questions tagged [diff]

diff is a shell command to find differences between two files. It is common on all *nix based systems

2 votes
1 answer
66 views

Cygwin bash script file fails silently

I have a script file that uses rsync for backup, then compares the two directory trees using diff. diff seems to find all the differences correctly - it matches what WinMerge finds. But when there ...
Ronzone's user avatar
  • 21
0 votes
0 answers
52 views

How to compare TIFF files with fields tagged 37680 (0x9330)?

Let's assume two TIFF files which are probably the same except their tags (according to a Web search) “MSPropertySetStorage” / “OLE Property Set Storage”: $ ls -l f1.tif f2.tif | cut -d ' ' -f 5,11 ...
AlMa1r's user avatar
  • 133
1 vote
0 answers
57 views

How to command pv (Pipe Viewer) to work with diff?

using: OS: Kubuntu 22.04.3 LTS x86_64 diff (GNU diffutils) 3.8 Copyright (C) 2021 Free Software Foundation, Inc. pv 1.8.0 Copyright 2023 Andrew Wood, pv = Pipe Viewer commands to display above: ...
joseph22's user avatar
  • 367
1 vote
1 answer
192 views

On Linux, how can one diff directories, excluding files by name, but including directories of the same name?

Consider the following dir/file structure (all leaf nodes are regular files, not that it really matters): $ tree . ├── cool_1 │   ├── dumb │   │   ├── file1 │   │   └── file2 │   └── foo │   └── ...
SirPentor's user avatar
  • 119
0 votes
1 answer
2k views

exclude all directories and subdirectories from du/diff command in calculations

I would like to find difference in bytes in files. However, du/diff command with -a list also directories and subdirectories. I want only the files in subdirectories and directories, not these ones. I ...
Estatistics's user avatar
0 votes
0 answers
11 views

Diff with white spaces and different numerical precision

I have two files: $cat a.txt 1 72200 1 1.000000000000000 1.109393E+01 3.670034E-01 0.000000E+00 1.109333E+01 3.669835E-01 3.636971E-02 1.110000E+01 0....
Manolete's user avatar
  • 111
1 vote
0 answers
485 views

How reliable is diff?

I copied a large directory from one volume to another (using rsync) and subsequently wanted to check whether the copy was indeed correct to verify the integrity of the data. To avoid the lengthy file ...
Alex Ixeras's user avatar
-1 votes
2 answers
1k views

TortoiseGit: How to show files with differences between branches before merging

Merging in TortoiseGit will automatically merge a file to the latest code if there are no conflicts. However, I'd like to choose some blocks to merge only (the files don't conflict). Is it possible to ...
Dan D.'s user avatar
  • 731
0 votes
1 answer
137 views

borg backup is processing all files instead of modified

please advise how to correctly make borgbackup to process and copy only modified source files and their diffs to destination? every week we make our data snapshot in cephfs: /data/.snap/snap1/ /data/....
Gena Mrt's user avatar
0 votes
0 answers
117 views

How to remove the "+" and "-" after a diff comparison

I compare 2 files using Cygwin (MobaXterm) diff. Output files have -- a and ++ b lines at the first line. I want to delete only these lines. How could I do it? Here's my script: #! /bin/bash sort -...
susik's user avatar
  • 653
1 vote
0 answers
270 views

Compare two large text files with NO newlines

I have two large (2-3MB) text files with only a few hundred characters different. Normally diff would work fine for comparing them to find the differences. But although it's a text file, there are NO ...
Manius's user avatar
  • 113
0 votes
0 answers
167 views

Cross-compare several files with a diff tool

Have anyone encountered the challenge of comparing several files with each other on a Mac/unix machine? Consider a list of files 100.txt, 101.txt, 102.txt etc. in the same folder. How can I cross-...
user1736049's user avatar
4 votes
3 answers
5k views

BeyondCompare doesn't ignore difference in line endings (DOS/UNIX)

I am using BeyondCompare 4 on Windows 10 to compare two directories with thousands of files. They are the basically same, but one exported from Windows, and another one from Linux. The only difference ...
Gonçalo Peres's user avatar
0 votes
1 answer
177 views

How do I create a side-by-side file diff importable as a *table* by Excel, Word, or Google Docs?

diff -y file1 file2 creates output like this: I want to take this output and convert it to a CSV format where the text at left is in one column, the < or | or >, if any, is in the second ...
Merk's user avatar
  • 101
0 votes
1 answer
69 views

What is Dropbox Sync Technology name [closed]

I remember Dropbox had (and still has, I think) a method for using less data when syncing files. It compares the byte difference between the original file and the new version, and only uploads/...
Shahriar's user avatar
  • 195

15 30 50 per page
1
2 3 4 5
20