Tagged Questions
diff - Command-line tool to display the differences between two files, or each corresponding file in two directories.
3
votes
8answers
93 views
linux diff tools: create list of modified files
How do I create a list of modified files programmatically using linux command line tools? I'm not interested in the difference in any particular file (delta, patch). I just want to have a list of new ...
1
vote
2answers
64 views
How to determine if file is just a permutation of another one?
Consider for example a source code file, where the functions are drastically shuffled around. Is there is a command to check if the reordering of lines is the only change?
(that means no lines are ...
1
vote
1answer
68 views
Diff similar lines
I'd like to print a list of lines where the first word in two files is identical, and the rest of the words are not. Some complicated mess with comm, grep and cut would be possible, but hopefully ...
2
votes
2answers
67 views
Comparing files and their properties
I get information of a certain set of files in my mail every day, which looks like this:
58623208 Sep 14 20:08 blbn_blfbe_drv
57904920 Sep 14 19:54 blbn_cycmn
55814208 Sep 14 06:02 clsa_Upd
38912000 ...
5
votes
4answers
67 views
Compare an old file and new file, but ignore lines which only exist in new file?
I have two files:
oldlist - This contains a list of files and a md5 hash for each file. This was generated one year ago.
newlist - This also contains a list of files and a md5 hash for each file. ...
2
votes
0answers
30 views
merge that works at word granularity instead of line
The old diff, patch, and merge programs, and their modern descendents in the form of version control systems work great for managing source code that can be edited concurrently by multiple people.
...
4
votes
1answer
98 views
Comparing text files on Emacs
I have a couple of questions about comparing text files on Emacs
I have been playing with M-x compare-windows and I read in the documentation that, if I pass it a numeric argument, Emacs ignores ...
1
vote
1answer
40 views
RPMs and patching
I have 3 files (from here)that I have been given to install in an attempt to upgrade the compiler:
binutils-2.13.2.1-1.mipsel.rpm
binutils-2.13.2.1-1.src.rpm
binutils-2.13.2.1-r5900-7.diff.gz
...
3
votes
3answers
141 views
How to diff files ignoring comments (lines starting with #)?
I've two configuration files, the original from the package manager and a customized one modified by myself. I've added some comments to describe behavior.
How can I run diff on the configuration ...
2
votes
1answer
60 views
diff a gzipped tarball against a directory?
Is there a way I can diff a gzipped tarball against an existing directory?
I would like to be able to do it without extracting the data from the tarball.
0
votes
1answer
60 views
Pipe diff file into patch?
Is there a way to pipe the diff output into patch? The -i parameter is for specifying a diff file, but I just want to do it more dynamically, since I will be updating regularly against a directory ...
1
vote
2answers
108 views
Comparing two directories in different servers
We copy our production code and data files to a testing server on a weekly basis.
It can take hours, and sometimes it hasn't finished.
What is the best method to confirm that the directories have ...
0
votes
3answers
124 views
Total Commander “compare content” like alternative?
I'm searching a GUI [or CLI] tool that can produce output like the Total Commander compare content function does! For example:
Are there any that do that? It's a very handy tool and I miss it
3
votes
7answers
187 views
diff within a line
I have some sql dumps that I am looking at the differences between. diff can obviously show me the difference between two lines, but I'm driving myself nuts trying to find which values in the long ...
3
votes
1answer
146 views
Make diff Use Full Terminal Width in Side-by-Side Mode
Most applications are smart about using the full width of the terminal available to them. My shell does, screen, vim, etc. However, diff in side-by-side mode (-y), does not. This angers me. It uses ...