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

0 votes
2 answers
43 views

I have two sets of files, each set in its own directory. The files in directory subset/ are a subset of those in superset/. superset/ subset/ apple.txt banana.txt ...
Darien Marks's user avatar
5 votes
4 answers
2k views

Assuming there are two files in Linux. FileA and FileB both with some different list of fruits. I apply the below commands. diff fileA fileB > file.diff Next, I execute the below command patch ...
pravi's user avatar
  • 129
0 votes
1 answer
88 views

I'm using an external tool for diffing; but I'd like to establish a safe fallback for systems where that tool isn't installed. I can wrap the call to my external difftool in a script that checks for ...
ELLIOTTCABLE's user avatar
  • 2,788
1 vote
3 answers
4k views

I'm looking for a command line tool to check if files are the same or not, I know there are "fc" and "comp" but I'm not sure which is better or if they are safe or not. I have ...
amymor's user avatar
  • 85
0 votes
1 answer
203 views

I have a linux system on a micro-SD card which is acting strangely. I want to see which files have changed since I imaged the card from an image file. So, I mount the image file linux partition as /...
rich's user avatar
  • 165
1 vote
0 answers
239 views

I am happy to join you here. I have an excel sheet that contains thousands of rows, and there is two columns that contains similar text, sometimes identical, and sometimes long. What I need is a way ...
Lancer's user avatar
  • 11
2 votes
1 answer
148 views

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
130 views

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
  • 1
1 vote
0 answers
130 views

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
  • 529
2 votes
1 answer
856 views

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
  • 139
0 votes
1 answer
4k views

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
2 votes
0 answers
1k views

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
3k views

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
  • 761
0 votes
1 answer
283 views

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
310 views

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
  • 703

15 30 50 per page
1
2 3 4 5
20