Page 1 of 1

Finding two fields in a file at the same time

PostPosted: Wed Sep 01, 2010 12:36 pm
by yogeshvalhe
Hello All,

I have a question. I want to find find all those records by giving the two conditions.

Let us say...

0102 AAAA BBBB CCCC DDDD ABCD
0103 AAAA BBBB CCCC DDDD ABCD
0103 AAAA BBBB CCCC EEEE ABCD

Is it possible to search all those records which having '03' in position 3 and have ABCD at position 26

Let me know if there is such search command.

Thanks,
Yogesh

Re: Finding two fields in a file at the same time

PostPosted: Wed Sep 01, 2010 1:21 pm
by NicC
Not as such. You can do it in a multi-step fashion - but back up the data first!

x all
f '03' 3 all
del all x
x al
f 'abcd' 26 all
del all x