sandy1028 has asked for the wisdom of the Perl Monks concerning the following question:
and text2.txt is a file which contains only single column2343/45/45/cal/ca-1.xml 2343/45/45/ca-1 6534/534/34/car/ca-5.xml 6534/534/34/ca-5
How to read two files simultaneously and print the line of text1.txt in which the string is not present in text2.txt. In the above example, the string '6534/534/34/ca-5' matches with text1.txt of column2, so I have to print the line '2343/45/45/cal/ca-1.xml 2343/45/45/ca-1' as the string '2343/45/45/ca-1' doesnot match in text1.txt. Please help me. Thanks in advance6534/534/34/ca-5 5676/435/734/da-1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read two files and print
by GrandFather (Saint) on Feb 26, 2009 at 04:25 UTC | |
by Marshall (Canon) on Feb 26, 2009 at 15:50 UTC | |
by sandy1028 (Sexton) on Feb 27, 2009 at 04:20 UTC | |
by GrandFather (Saint) on Feb 27, 2009 at 05:11 UTC | |
by Marshall (Canon) on Mar 01, 2009 at 16:37 UTC | |
|
Re: Read two files and print
by hbm (Hermit) on Feb 26, 2009 at 03:18 UTC | |
by sandy1028 (Sexton) on Feb 26, 2009 at 03:42 UTC | |
by velusamy (Monk) on Feb 26, 2009 at 04:27 UTC | |
by GrandFather (Saint) on Feb 26, 2009 at 04:34 UTC |