RCP has asked for the wisdom of the Perl Monks concerning the following question:
Got great help earlier, now have a couple of questions.
QUESTION #1
file1 data:
# This is a list of selected nets Net 'GROUND' top side Net 'GROUND' bottom side Net '/ad1' top side Net '/ad1' bottom side Net '/VCCA' top side Net '/VCCA' bottom side
a. I need to seek all lines that has the word "Net" in file1
b. remove lines that contain duplicates found in the 2nd column only, so that it outputs to file called "file2" to look like below:
'GROUND' '/ad1' '/VCCA'
Question #2
How can I take a file like "file2" and have perl read the column and strip out any lines in another file that are contained in the file2 listing?
While I have similar scripts written in UNIX (Korn), I'm trying to learn PERL's eqivalent code.
Thanks... RCP
edit by thelenm: added tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing duplicates
by revdiablo (Prior) on Feb 25, 2004 at 22:08 UTC | |
by RCP (Acolyte) on Mar 03, 2004 at 11:50 UTC | |
by revdiablo (Prior) on Mar 03, 2004 at 19:28 UTC | |
by RCP (Acolyte) on Mar 04, 2004 at 12:33 UTC | |
|
Re: Removing duplicates
by talexb (Chancellor) on Feb 25, 2004 at 20:07 UTC | |
by RCP (Acolyte) on Mar 05, 2004 at 15:59 UTC | |
by talexb (Chancellor) on Mar 05, 2004 at 18:36 UTC | |
by RCP (Acolyte) on Mar 06, 2004 at 18:11 UTC | |
|
Re: Removing duplicates
by delirium (Chaplain) on Feb 25, 2004 at 21:50 UTC |