Hi all, I need to do this: i must search "2 NOTE di ". When I find it, I must search up the text "0 @", copy all the line and paste in a new file. My 333000 lines sample text is this:
...........
0 @I13507@ INDI
1 NAME Maria Antonia /Agnoli/
2 GIVN Maria Antonia
2 SURN Agnoli
2 _MARNM Maria Antonia /Chiamulera/
1 SEX F
1 CHAN
2 DATE 07 Dec 2005
3 TIME 15:28:59
1 FAMS @F4234@
1 BIRT
2 DATE 01 JAN 1740
2 PLAC Valle (BL)
1 DEAT
2 DATE 19 may 1792
2 PLAC Valle (BL)
1 FAMC @F5932@
0 @I13385@ INDI
1 NAME Antonia /Agnoli/
2 GIVN Antonia
2 SURN Agnoli
2 _MARNM Antonia /Da Giau/
1 SEX F
1 CHAN
2 DATE 28 Oct 2005
3 TIME 18:33:19
1 FAMS @F4200@
1 BIRT
2 NOTE di Gaspare di Vallesina e di Bartolomea
2 DATE 26 DEC 1713
2 PLAC Valle (BL)
1 DEAT
2 DATE 11 apr 1788
2 PLAC Valle (BL)
1 FAMC @F5955@
0 @I8797@ INDI
1 NAME Maria /Ciarloni/
2 GIVN Maria
2 SURN Ciarloni
2 _MARNM Maria /Baioni/
1 SEX F
1 FAMS @F2721@
1 BIRT
2 NOTE di Pietro
0 @I8793@ INDI
1 NAME Palma /Ciarloni/
2 GIVN Palma
2 SURN Ciarloni
1 SEX F
1 BIRT
2 DATE 9 oct 1827
2 PLAC Mondolfo (PU)
2 NOTE di Pietro (Scapezzano 29/10/1775-Mondolfo 4/9/1848) e Domenica Bacianini
1 FAMS @F2720@
........
I would like to have in a new file:
.......
0 @I13385@ INDI
0 @I8797@ INDI
.......
Thanks all
Max
...........
0 @I13507@ INDI
1 NAME Maria Antonia /Agnoli/
2 GIVN Maria Antonia
2 SURN Agnoli
2 _MARNM Maria Antonia /Chiamulera/
1 SEX F
1 CHAN
2 DATE 07 Dec 2005
3 TIME 15:28:59
1 FAMS @F4234@
1 BIRT
2 DATE 01 JAN 1740
2 PLAC Valle (BL)
1 DEAT
2 DATE 19 may 1792
2 PLAC Valle (BL)
1 FAMC @F5932@
0 @I13385@ INDI
1 NAME Antonia /Agnoli/
2 GIVN Antonia
2 SURN Agnoli
2 _MARNM Antonia /Da Giau/
1 SEX F
1 CHAN
2 DATE 28 Oct 2005
3 TIME 18:33:19
1 FAMS @F4200@
1 BIRT
2 NOTE di Gaspare di Vallesina e di Bartolomea
2 DATE 26 DEC 1713
2 PLAC Valle (BL)
1 DEAT
2 DATE 11 apr 1788
2 PLAC Valle (BL)
1 FAMC @F5955@
0 @I8797@ INDI
1 NAME Maria /Ciarloni/
2 GIVN Maria
2 SURN Ciarloni
2 _MARNM Maria /Baioni/
1 SEX F
1 FAMS @F2721@
1 BIRT
2 NOTE di Pietro
0 @I8793@ INDI
1 NAME Palma /Ciarloni/
2 GIVN Palma
2 SURN Ciarloni
1 SEX F
1 BIRT
2 DATE 9 oct 1827
2 PLAC Mondolfo (PU)
2 NOTE di Pietro (Scapezzano 29/10/1775-Mondolfo 4/9/1848) e Domenica Bacianini
1 FAMS @F2720@
........
I would like to have in a new file:
.......
0 @I13385@ INDI
0 @I8797@ INDI
.......
Thanks all
Max