Skip to main content

Questions tagged [diff]

diff - Command-line tool to display the differences between two files, or each corresponding file in two directories.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
71 views

I am struggling with understanding how diff and patch are supposed to work. Here's my use case: I use Betterfox user.js config file for my Firefox profile, but I add some overrides to it. I want to ...
Nikita Karamov's user avatar
0 votes
0 answers
54 views

I've experienced total system freeze while checking if files where copied correctly by diff -rq [INTERNAL HDD] [USB HDD] This happened twice, always while running the diff. On the second occasion I ...
Marek Schwarz's user avatar
0 votes
1 answer
97 views

I am trying to hack the Linux kernel and added/modified some header files in include/linux. However, when I generate patch file using diff like: diff -uprN -X linux/Documentation/dontdiff \ ...
Kalman's user avatar
  • 3
0 votes
2 answers
125 views

Let's say that in a script, you have a directory $1 and its copy $2 and you'd like to compare the metadata (names, permissions, sizes, full modification dates, …) of the files and directories inside ...
AlMa1r's user avatar
  • 1
0 votes
1 answer
133 views

I'm trying to synchronize two hard drives. I thought most people who don't want to lose any data and don't use RAID would use such a method so that there would be a well-working GUI. That doesn't seem ...
mYnDstrEAm's user avatar
  • 4,896
0 votes
1 answer
73 views

I am doing diff -rq to check the difference between 2 folders (A and B). I don't want to know if folder A has any new files because that's expected. How do I ensure that this information doesn't come ...
desert_ranger's user avatar
0 votes
1 answer
161 views

Referring to this https://stackoverflow.com/a/31356602, I wrote this code: #!/bin/bash # Define the two strings to compare string1="First string with some random text." string2="Second ...
Gabriele's user avatar
  • 353
2 votes
1 answer
1k views

I'm used to meld for editing while seeing an intra-line diff that's updated live in response to edits. One just types in the left or right pane of the window and then save one or both files. I'm ...
Croad Langshan's user avatar
2 votes
3 answers
523 views

In a Linux shell, how to compare two directories recursively, and for each pair of files (including symlinks and directories) with the same location (including the name) in the two directories and the ...
AlMa1r's user avatar
  • 1
0 votes
0 answers
68 views

I tried vim -d <(ffprobe one.mp4 2>&1) <(ffprobe two.mp4 2>&1) to see the difference between the two videos' codecs etc., but vim doesn't show anything when it opens, just an empty ...
user avatar
2 votes
0 answers
49 views

I've observed unexpected behavior (that seems to be a bug) in diff in recent versions of zsh on macOS, the problem is specifically with the -s directive. diff -s lists difference, but it always adds ...
erik's user avatar
  • 21
1 vote
0 answers
178 views

I've created a bash script that Lists the document IDs I've put in an Elastic index, in $liste_ids_lines: a004-événements-examen_individus_localisés_ou_non a020-les_points-leurs_indicateurs-...
Marc Le Bihan's user avatar
0 votes
1 answer
56 views

I have this env file 1.env contents: BARF_BAG=1 then another env file: 2.env contents: BARF_BAG=2 I run comm and diff on the files to see the difference: #!/usr/bin/env bash ( set -e; ...
Alexander Mills's user avatar
1 vote
1 answer
1k views

I have two env files, let's say x.env and y.env, the order of the variables is different, but the content could be the same but likely different. Is there some tool I could use to diff the variables? ...
Alexander Mills's user avatar
-1 votes
1 answer
108 views

I'm trying to do a compare between a config from an old box and a new box to verify Availability and State haven't changed. I have a file that is generated with about a thousand nodes but every node ...
MyWiseGuys's user avatar
0 votes
1 answer
51 views

Is there any form of diff that detects matching lines, i.e., lines containing the same text, except for numerical values (decimal, octal, hexadecimal), and then calculates the delta for those numbers, ...
matjes's user avatar
  • 1
1 vote
4 answers
208 views

I am trying to compare two text files but I need to edit them first to ignore certain strings. Here is an example of one text file: Processing Server ABC-123 oracle 10785 1 0 May17 ? 00:...
user575954's user avatar
0 votes
1 answer
48 views

I'm comparing two files in vimdiff. For one section of the code in the first file, the same section in the second file has several lines of code added, and then a slightly modified copy of the section ...
wile_e8's user avatar
  • 111
3 votes
1 answer
121 views

diff3 on files finds no difference: $ grep -P '\[\[.*?\]\]' -o intro.tex | sort > A.txt $ grep -P '\[\[.*?\]\]' -o intro.tex | sort | uniq > B.txt $ grep '\\pnum %% \[\[' intro.tex | sed 's/\\...
pmor's user avatar
  • 757
1 vote
1 answer
3k views

I have 2 directories $ tree dir{1..2} dir1 ├── file1 └── file2 dir2 ├── file1 └── file2 I want to compare all files in dir1 with all files in dir2 using ansible and print differences like this output:...
Sollosa's user avatar
  • 2,009
0 votes
0 answers
110 views

There are two files, a and b, with such contents: a apples oranges kiwis carrots b apples kiwis carrots grapefruits Next, I do diff for them: $ diff a b 2d1 < oranges 4a4 > grapefruits After ...
Ilya Loskutov's user avatar
0 votes
0 answers
411 views

patch: **** malformed patch at line 225: diff --git the line 225 is this one : diff --git a/files/etc/Compile_info.txt b/files/etc/Compile_info.txt I have a many patches in one file patch and I ...
James78's user avatar
  • 189
-1 votes
1 answer
517 views

this is the scenario. I have File1 and File2 and i like to have the outcome in File3. I'm kind of new to Linux, but so far ive tried to use sort, diff, and comm. but no luck so far. File1.txt File2....
conny's user avatar
  • 1
-1 votes
1 answer
69 views

I have 2 files: File1: DX 100860599215|732512737|00002|40|1|20220105|20220105|20220523|31014280|5892720|36907000|1|20220105|40|20|D| File2 DX 100860599216|732512737|00002|40|1|20220105|20220105|...
prex's user avatar
  • 1
-1 votes
1 answer
915 views

I have two csv files like this; 422174,XN,20.99,2020-09-01,2022-01-20 20:20:28.613+00 421348,SB,21.99,2021-01-26,2022-01-20 20:20:28.613+00 885176,XN,41.80,2021-11-17,2022-01-20 20:20:28.613+00 881751,...
Burak's user avatar
  • 27

1
2 3 4 5
12