The diff tag has no wiki summary.
5
votes
3answers
166 views
compare 2 directories and copy differences in a 3rd directory
Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
2
votes
1answer
45 views
debian, diff, config default
I want to know if is posible to get the diff on the original versus the current config files of installed debian packages.
If found an answers which shows up the modified config files, but I find no ...
3
votes
4answers
112 views
How can I get 'diff' to show only added and deleted lines? If diff can't do it, what tool can? Take-2
I have 2 sorted files produced by
xxx>find /store -type f -print | sort > /tmp/invent.txt
xxx>find /fbkup -type f -print | sort > /tmp/backup.txt
I want from diff a file name list of files ...
1
vote
1answer
30 views
Find and group all unique versions of a file
I have a convoluted directory structure where there are many copies of foo.txt. I'd like to find all copies of this file and group them by their diff result, i.e.
[type 1]
/bar2/sub1/foo.txt
...
0
votes
0answers
92 views
IBM Bladecenter Nortel switch issue
We have a IBM Bladecenter with integrated Nortel switch.
The problem is I am not able to change anything on the switch because I am getting the following errors:
>> azimov-in - Main# diff
Diff ...
0
votes
3answers
100 views
Monitoring folder diffs across servers with zabbix
Problem: I want to make sure that a certain folder is equal regarding it's contents across my servers.
I do not want an automatic filesync to keep them equal, changing is done manually.
My initial ...
-2
votes
1answer
38 views
I am trying to find the meaning of: diff filename 1 filename2 | grep '^[<>]' | sed “s/^> (.*)/\1 some string/;” [closed]
I am trying to find the meaning of: diff filename 1 filename2 | grep '^[<>]' | sed "s/^> (.*)/\1 some string/;"
Please break this down for my understanding. I know a few because, am using ...
1
vote
2answers
324 views
How can I compare two directories to compare missing files, when the directories don't have the same structure?
I've been sent a HDD of new and updated files from an organisation that we are working with, but we already have most of the files sitting on our servers, and would like to update our local versions ...
0
votes
2answers
245 views
Bash: Comparison of two files having different file size
I have 2 files with me having content like:
file1:
a
b
c
e
g
s
and file2
s
a
b
c
I want to compare contents of the file, that what which letters are NOT present in other file, and which Are ...
1
vote
1answer
51 views
Find mysql replications diffs patterns
I'm using pt-table-checksum and pt-table-sync to check for differences in my replicas.
when I use pt-table-sync with the -print option, I can only see the master values.
How can I show the ...
0
votes
2answers
117 views
looking for a tricky one liner to get diff of awk output
Lets say i have two files like below:
file1
a 23
b 34
c 47
file2
a justin_beiber_sucks
b segmentation fault
c jackson
d nop
Now what i want is to get a diff of the first column of two file. I'm ...
6
votes
1answer
128 views
Identifying the number of changed bytes between two ZFS snapshots of the same file
Let's assume I have a ZFS filesystem that contains virtual machine disk images, e.g.
/tank/examplevm/examplevm-flat.vmdk
Let's further assume I take daily snapshots of that ZFS filesystem, e.g.
$ ...
6
votes
1answer
280 views
Is there a command that produces a diff of the permissions of target files?
Just as it sounds, I'm trying to find out if there is a (standard) command that will produce a diff of the permissions between two files and/or directory trees.
Ideally it would put out a patch file ...
7
votes
1answer
272 views
Does btrfs have an efficient way to compare snapshots?
While diffing mounted snapshots would work, it sounds like it could be horribly slow in many cases.
Is there btrfs specific functionality for diffing snapshots? (I was unable to find any in the docs)
...
2
votes
2answers
590 views
Script to find out differences between local and remote file systems over SSH
I am looking for a script to find out the differences between a local and remote file systems (over SSH). Ideally the script should do the following:
-browse the local file system for folders
-find ...
1
vote
2answers
184 views
Interactive two panels diff for *nix console?
Could you please advise me about interactive two panels diff tool, something like http://www.sourcegear.com/diffmerge/, but for *nix console/ncurses
or maybe somebody knows how DiffMerge can be run ...
4
votes
2answers
88 views
Only show what's new in a file
I want to find out what was added to a log file between 2 tasks. Right now the way I do it is:
content of test.log initially
aaa
bbb
saving content of the log
$ cp test.log test.log.before
...
0
votes
3answers
416 views
Parsing a diff file using grep/awk
I'm trying to parse a standard diff of some sql files to return only the delete sections. I have been using grep with the after context (-A) which almost works (only because I know that delete ...
5
votes
5answers
553 views
Comparing OS configuration of two RHEL servers
What is the best way to compare the OS configuration of two (or more) RHEL 5.X servers? Are there any tools/packages available to do this? Note, I am mostly looking for tunables OS (kernel ...
1
vote
4answers
125 views
Diff for a locally modified package in Ubuntu
If I modify the source code of some package that I've installed with apt-get in Ubuntu, is there some package tool that will let me see the diff between what was the original installation and my ...
1
vote
2answers
72 views
Some copied files have additional blank lines
In the process of comparing files between 2 versions of an application i've noticed that a number of files seem to have gained additional blank lines throughout the file. These files were never ...
1
vote
3answers
2k views
Compare two folder content
How can I compare two folder content under linux.
I'm using diff but I want to display only the files with the same names.
0
votes
1answer
257 views
Help with diffs - Neither WebSVN or OpenGrok are diffing
I'm having issues which may or may not be related (excuse the vagueness).
In Web SVN, I can't select multiple revisions and compare - when I hit compare, I get a page with nothing on it other than ...
0
votes
3answers
211 views
How to use bzdiff to find difference between 2 bzipped files with diff -I option?
I'm trying to do a diff on MySQL dumps (created with mysqldump and piped to bzip2), to see if there are changes between consecutive dumps. The followings are the tails of 2 dumps:
tmp1:
/*!40101 SET ...
1
vote
2answers
205 views
finding a group of string common in two files
I have used diff command in past.I faced a situation to which I did not had a clue
here are some text strings (which can be stored in a file)
CONFIG_XEN=y
CONFIG_XEN_PVHVM=y
...
2
votes
2answers
795 views
Is there a diff/merge utility to compare binary files and synchronize data bit-by-bit in either direction based on differences in binary data?
I have a tricky dilemma. I've got some files on two different destination drives, copied from the same source drive. The source drive had been failing, so I used dd to copy over the data to one ...
0
votes
1answer
52 views
Unable to apply patch generated with diff on SunOS server
I generated a patchfile of 2 directories using this command:
diff -ur source-20110125 source > mailpatch3.patch
Now I would like to apply the patch, doing this:
patch -p1 < mailpatch3.patch
...
0
votes
1answer
118 views
diff variables within a script
I realize that the diff command is reserved for directories/files, but I've seen it being able to read from standard input, so that's not necessarily true.
Is it possible to somehow compare two ...
0
votes
1answer
1k views
How to compare/diff ACLs on two directory trees?
I have two directory trees that are supposedly copies of each other. I need to compare not the contents of files but the permissions on them. Is there a tool that will compare two dir trees but ...
1
vote
1answer
447 views
diff command for comparing files more than 2GB in solaris?
how to run recursively diff command for comparing files of file size more than 2GB in solaris?
4
votes
1answer
379 views
How to convert an rdiff delta file to a regular diff?
I need to diff two very large files, far too large for diff to handle. rdiff can produce a delta file for them in a few seconds, but I'd like to have a real diff as output. Is there an existing way of ...
2
votes
2answers
242 views
Diff always fail to apply patch of files I make?
I have some files in my server that I wanted to make a patch for, so I took one of the files to test:
cp /path/file ~/file
So now I have just the same file in my root directory so I make any ...
11
votes
3answers
5k views
Linux tools to find duplicate files?
I have a large and growing set of text files, which are all quite small (less than 100 bytes). I want to diff each possible pair of files and note which are duplicates. I could write a Python script ...
2
votes
3answers
386 views
diff for binary files
I have a folder with one big file. This is a file that changes each day. Using tar for incremental backups is not a good idea as that big file (each file that is changed is saved) will be copied each ...
0
votes
4answers
334 views
linux diff command options
diff cookies.old cookies.new
5c5
< One cup vanilla extract
---
> One teaspoon vanilla extract
7d6
< Six ounces chopped liver
21a22
Any flags/options can help me get rid of this 5c5, 7d6, ...
1
vote
2answers
769 views
Difficulty restoring a differential backup in SQL Server, 2 media families are expected or no files are ready for rollforward
I have sql backups copied from server A to server B on a nightly basis.
We want to move the sql server from server A to server B without much downtime, but the files are very large.
I assumed that ...
1
vote
1answer
145 views
How do I make sdiff ignore the * character?
Here's what I'm sure is an easy one, but I can't figure it out.
I have two files:
file1: You are in a maze of twisty little passages, all alike
file2: You are in a maze of twisty little* passages, ...
9
votes
4answers
5k views
How to compare two directories (including sub directories) for differences?
How can I compare two directories with sub dirs to see where is the difference?
0
votes
2answers
369 views
Running (vertical?) diff on columns in a file
in our company we pull in inventory files from third parties. These files are in a fixed format, containing the 13-digit EAN (think UPC code) as well as other data. I also have a master list of EANs ...
0
votes
2answers
151 views
diff script command to mail
Is there a way to add a command to mail this if it finds any changes in the /newchanes.list. mail with an attachment(/changes) saying it found changes and if not then the subject line would say: no ...
3
votes
3answers
747 views
help with bash script using find and diff command
i have a bash script that i need help with:
#!/bin/bash
if [ -f "/suid.old" ]
then
find / -perm -4000 -o -perm -2000 ls > suid.old
else
find / -perm 4000 -o -perm -2000 ls > suid.new
diff ...
20
votes
6answers
657 views
How do I prove two files are the same legally?
We had someone steal some files before quitting and it has eventually come down to a lawsuit. I've now been provided with a cd of files and I have to "prove" that they are our files by matching them ...
1
vote
4answers
397 views
Diff and patch for big binary files
As part of my job I regularly need to upload big files (a 512 MB to 1 GB ISO, for example). In some cases, very little changes from ISO to ISO (say, a 10 MB file in a 1 GB ISO). Unfortunately, I can't ...
2
votes
2answers
2k views
Apply multiple .patch files
I have a directory with .patch files, generated using diff.
I would like to apply all those patches using patch -p1 to another directory.
But patch takes only one file, unless I cat.
What would the ...
1
vote
3answers
128 views
“One-sided” diff
I've got two large directory trees--think years of client work for an agency. One is old and out of date; the other is larger and in current use. I'd like to delete the former, but I want to be sure ...
6
votes
7answers
804 views
Different files of two directories
There are two directories I'd like to compare. I tried diff but it includes the changes inside the files. All I want is something like this
file a is just in /A
file b is missing in /A
file c ...
11
votes
4answers
14k views
How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
2
votes
3answers
2k views
rsync -c -i flags identical files as different
My goal: given a list of files on local server, show any differences to the files with the same absolute path on remote server; e.g. compare local /etc/init.d/apache to same file on remote server.
...
1
vote
3answers
454 views
Log Backup required even if we take Full + Differential File backup?
Here is what I am doing,
Take full FILE backup at 1.00 AM
Take differential FILE backup every 15 minutes
And we ftp all data to other location and restore everything there
So now from My Source ...
8
votes
6answers
4k views
Get rsync to generate a patch file instead of copying across files?
I'm copying lots of files that have changed from one server to another using rsync. I know I can use the -n option to do a dry run, so I can see what files have been changed. However is it possible to ...