I made an extraction on 2 different databases. What I need to do is to compare those extractions to know what is on database1 which is not on database2 and vice versa.
In those files, there are only numbers. So each line is just a number witch should be present on both file. If it's not, I want to know which number is not present on X file.
Working on Linux (Red Hat) I tried compare / sdiff etc but all those tools seems to compare line number X from file 1 to line number X on file 2 instead of checking in the whole file
Here is my output :
File1 :
File2 :
So here I'd like to know that 456123456 is not present in File2 (and get the output in a third file)
Note : I ve got 15 millions lines to deal with so a simple cat | while read and grep script is too slow
Big thanks to anyone who can help me with this
Last edited by Scott; 09-03-2012 at 07:12 PM..
Reason: Code tags
Hi
I want to archive the following all the files and directory like listed below:
$ ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .emacs .mysql_history public_html .viminfo
What I tried is to use the following command
$ gtar cvzf allmyfiles.tar.gz *
... (1 Reply)
I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together.
I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Hi there,
in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Hi, all:
I've got two folders, say, "folder1" and "folder2".
Under each, there are thousands of files.
It's quite obvious that there are some files missing in each. I just would like to find them. I believe this can be done by "diff" command.
However, if I change the above question a... (1 Reply)
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes.
Please suggest if you know some commands whcih can... (6 Replies)
Morning all
I hope I have put this in the correct forum.
I have a requirement to monitor a directory on a server for files being sftp'ed in and then to sftp them of to another server. The issues I have though of are making sure the files have completely transferred onto the server before they... (6 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
HI All,
I am new to Unix shell scripts..
Could you please post the unix shell script for for the below request.,
There are two different tables(sample1, sample2) in different schemas(s_schema1, s_schema2).
Unix shell script to compare the columns of two different tables of two... (2 Replies)
Discussion started by: Rajkumar Gopal
2 Replies
LEARN ABOUT DEBIAN
cdbdiff
COOKIETOOL(6) Games Manual COOKIETOOL(6)NAME
cdbdiff - program to operate cookie (fortune) database
SYNOPSIS
cdbdiff [options] <database1> <database2> <resultfile>
DESCRIPTION
This manual page documents briefly the cdbdiff command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. Instead, it
has some plaintext documentation, see below.
cdbdiff is a program that compares two cookie databases and builds a list of those cookies that are only present in second, but not in the
first of them. The input files are not modified in any way.
OPTIONS
A summary of options is included below. For a complete description, see the documentation in /usr/share/doc/cookietool directory
[nothing]
Shows summary of options.
-c case sensitive comparisons.
-d[0-3]
how fussy about word delimiters? (default: 2)
-f[0-3]
input file format - -f3: cookies are separated by '%%' lines; -f2: cookies are separated by '%' lines (DEFAULT); -f1: each line is a
cookie; -f0: each word is a cookie.
-a append if <resultfile> exists (instead of failing).
SEE ALSO cookietool(6), cdbsplit(6)BUGS
None known.
AUTHOR
Upstream author and Aminet cookietool.lha package with AmigaOS binaries uploader is Wilhelm Noeker, <wnoeker@t-online.de>. Unix manpages
(including this one) and makefile are maintained by Miros/law L. Baran <baran@debian.org>. This manual page uses many excerpts from the
original README file.
May 19, 2001 COOKIETOOL(6)