473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

how to compare two files data in perl ..???

i am new to perl.i want to write a perl script to compare this data :
XBUF1/I net1 clk1 2.5e+06 0.2 2.5e+06 N
XBUF1/Z net2 clk1 2.5e+06 0.2 2.5e+06 N
XBUF2/I netgclk1 clk2 2.5e+06 2 2.5e+06 Y
XBUF2/Z netgclk2 clk2 2.5e+06 2 2.5e+06 Y
XGCLK2/CP netgclk2 clk2 2.5e+06 2 2.5e+06 Y
XGCLK2/E net2 clk1 2.5e+06 0.2 2.5e+06 Y
XGCLK2/Q out1 clk2 2.5e+06 2 2.5e+06 Y
XGCLK2/TE te1 NA 2.5e+06 0.2 2.5e+06 Y
XGCLK1/CP clk2 clk2 2.5e+06 2 2.5e+06 Y
XGCLK1/E en1 NA 2.5e+06 0.2 2.5e+06 Y
XGCLK1/Q netgclk1 clk2 2.5e+06 2 2.5e+06 Y
XGCLK1/TE te1 NA 2.5e+06 0.2 2.5e+06 Y
XFF1/CDN rst1 NA 2.5e+06 0.2 2.5e+06 N
XFF1/CP clk1 clk1 2.5e+06 2 2.5e+06 N
XFF1/D in1 NA 2.5e+06 0.2 2.5e+06 N
XFF1/Q net1 clk1 2.5e+06 0.2 2.5e+06 N
XFF1/QN dum1 clk1 2.5e+06 0.2 2.5e+06 N
.................................................. ........
i want to compare dis data with itself line by line...
can you please help me write the script...
Jun 29 '15 #1
1 2006
computerfox
276 100+
Read the files, parse, then compare. What do you have so far? We don't do homework or work assignments here.
Jun 29 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: nmadpl | last post by:
Hi, I am very new to Perl scripting and I am trying to modify XML files thro' Perl scipts. I would like to know how can I grab a piece of information (say 3 lines) from one xml file and write it...
11
Vasuki Masilamani
by: Vasuki Masilamani | last post by:
Hi, Can any one help me in writing a script in Perl to compare two csv files and pick out the records which show differences? Any responses would be appreciated. Thanks, Vasuki
3
by: shona | last post by:
Hi, can any one told me how to compare files with same name but different extension.. for eg. if a.txt & a.doc then ans is same files.. Thanks
3
by: vibhakhushi | last post by:
How to compare two files in perl. I have two files as shown below. First XML File <Data> <indep voltage> +1.20000000000e+01 </indep> <indep current> +5.08474576271e-04
12
by: Aditya sant | last post by:
Am spliting file string into array by using fgets(),and explode() On other hand am taking string from user,and again spliting it into array now I have 2 array when I compare 2 arrays by using...
9
Srijith B
by: Srijith B | last post by:
I have two files and I want to compare the first line of file1 to each lines of file2 and once it is done, next compare second line of file1 to each line of file2. So we a match is found, print...
3
by: Susan StLouis | last post by:
I'm writing a program that can be used to compare files. The program features a select that contains a list of files. After selecting several of the files. a "Biggest" button can be pushed to find...
3
by: raghusln | last post by:
How to call sequence of batch files from perl script
8
by: raj14 | last post by:
I have a problem. Currently I am trying to compare two text files which has high amount of data. I have developed a perl script to cross check both files. But it takes very long time. The codes are...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.