Question: Peal TCL File Comparision Program: I basically have to write a program that takes two text files where lines are representing the pin placement locations.

Peal TCL File Comparision Program:

I basically have to write a program that takes two text files where lines are representing the pin placement locations. I have to find the pins that are new/gone and when the location has changed (and with how much). I basically need to compare the two files to see if any pins (A,B,C,D,E) have been added or removed and also compare the number beside them, their placement, and say whether they have changed and by how much. Use the awk/sed/grep as needed utilities and Perl or Tcl to get this done. The result can be dumpped into an output file in the work area/directory.

The two contents of the two files are given below:

File1:

"A 9 4"

"B 6 7"

"C 10.0 5.7"

"D 100 101 "

File2:

"A 9 4 "

"B 6 7"

"C 10 4.7"

"D -100 101 "

"E 0 0"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!