Hi all,
I've got 2 files containing cksums & find info from two different dates.
File1:
1642397863 -rw-r--r-- utility 148 Sep 8 14:43 file1
2722648216 -rwxr-xr-x utility 83285 Sep 11 15:25 file2
2314555204 -rw-rw-rw- utility 428116 Sep 26 13:59 file3
File2:
8888888888 -rwxr-xr-x utility 83285 Sep 11 15:25 file2
2314555204 -rw-rw-rw- utility 428116 Sep 26 13:59 file3
1642397863 -rw-r--r-- utility 148 Sep 8 14:43 file4
I'm mad at myself for not knowing the best way to do this (data strucs, algorythms, etc.)
I want to perform a "minus" (first file names minus second file names.)
product: file1
Second an "intersection" (second minus first - I think intersection is the term =)
product: file4
Third, I want a diff of the REMAINING files if cksum, user, size, etc. are different.
product:
2722648216 -rwxr-xr-x utility 83285 Sep 11 15:25 file2
8888888888 -rwxr-xr-x utility 83285 Sep 11 15:25 file2
Actually, I'll put these lines together, side-by-side with a flag next to the set
that differed.
Something like:
date1 date2 date1 date2...
------------- ------------- ----------- ----------
> 2722648216 8888888888 -rwxr-xr-x -rwxr-xr-x utility utility 83285...
This was extremely useful to my dev efforts in the past, and to others as well
I previously accomplished this useful task by loading the data into Oracle.
Since becoming a member of this site, I refuse to do anything that Perl can
do itself just b/c I don't yet know how.
Regards,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.