Hello,
I have a wierd question. I have 2 perl scripts, they do the exact same thing, except one creates a file called "newsite1.txt" and the other "newsite2.txt". And each one are run on alternating days. newsite1.pl runs on sunday, tuesday, thursday, saturday. What they each do, is read a directory, which has the names of all the cellsites in the nextel system. My boss wants me to create a tool that tells you which cellsite came up over night. So if someone clicks the button today (tuesday) they would get the sites that came up monday night through tuesday morning. Here is a little bit of what the text file looks like:
PHI_R10K_2
PHI_TDAP_3
de0040Newark
de0042Wilmington
de0053Christana
de0053Christiana
de0101Odessa
de0102Clayton
de0103Dover
de0180Claymont
de0184Wooddale
de0187Woodcreek
de0205ChestnutKnoll
de0267Chapman
de0314Glasgow
de0348Millside
de0371SouthDover
Only there happens to be about 700 of them. Now, my question is, how can i compare newsite1.txt to newsite2.txt and print the differences with most effenciency? i thought about opening the one file, and comparing every entry against the second file. But, if the second file has more cell names.. then some would get neglected.
Thanks in advance
Dipul
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.