Tagged Questions
8
votes
4answers
364 views
rolling diffs for storage of highly similar files?
At work we do a nightly dump of our mysql databases. From day to day, I would guestimate that close to 90-95% of the data is duplicate, increasing as time goes on. ( Heck at this point some are ...
7
votes
4answers
4k views
Output the common lines (similarities) of two text files (the opposite of diff)?
Diff is a great tool to display the changes between two files. But how to display the similarities of two text files (while ignoring the differences)?
I.e. sample input:
a:
Foo Bar
X
Hello
World
42
...
2
votes
1answer
692 views
Diff the output of two `awk` commands
I'm trying to compute the difference between the output of two awk commands but my simple attempts at it seem to be failing. Here is what I'm trying:
diff $(awk '{print $3}' f1.txt | sort -u) $(awk ...
2
votes
2answers
204 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 ...
1
vote
1answer
55 views
Program to upgrade configuration files
When upgrading Ubuntu (and probably other *nixes), the upgrade process will show a diff of changed configuration files and ask whether I'd like to replace them, keep the old version, or manually merge ...
1
vote
2answers
51 views
Reduce redundant logfile
I often have longer redundant log files, redundant in the sense that blocks of text repeat with minor changes. The length of the files makes it difficult to spot the actual information. I had the idea ...
-2
votes
1answer
741 views
Bash function to compare two binary files [closed]
I need a function to compare 2 binary files, here the requirements:
2 files, not 3 or 4
files can't be assumed to exist
avoid running checksum (CRC/MD5/SHA/...) until one must
if running multiple ...