in reply to Re: matchin a pattern 250 characters up and down stream
in thread matchin a pattern 250 characters up and down stream
FILE1
0 XYZ 5
1 TTY 15
0 MNU 10
FILE2
ABCDEFGHIJKLMNABCRSTUVWXYZ.....
it shud read the file 1 get the position (3rd column) open another file (file2). from postion 5 it should go say 10 positions ahead if 0 appears in file 1(column1) and check whether $ABC is found. the same if 1 appears but it has to go 10 characters before the from position 5 in this example
if match if found like this it should print Y other wise N
0 XYZ 5
1 TTY 15
0 MNU 10
FILE2
ABCDEFGHIJKLMNABCRSTUVWXYZ.....
it shud read the file 1 get the position (3rd column) open another file (file2). from postion 5 it should go say 10 positions ahead if 0 appears in file 1(column1) and check whether $ABC is found. the same if 1 appears but it has to go 10 characters before the from position 5 in this example
if match if found like this it should print Y other wise N
|
---|
In Section
Seekers of Perl Wisdom