Hello,
in a AIX system : AIX CDRATE01 2 7 00FAB3114C00
my following commande give the result :
LISTE /tmp/RESS
****************************************************************
Liste
TYPE = XXXXXXX
EX = YYYY
VER = S
DATE = 20160601
HEURE = 134701
EX = CUTAFAAQ
VER = X
DATE = 20160601
HEURE = 134701
****************************************************************
Hello, i can't use the word : CUTAFAAQ because, as i said, this word is not the same each time... It often change, that's why it's quite complicated...
If you don't know the word in advance, you need to define some context by which the target is identifyable, like "it's in the line starting with "EX" in the second block", or "it's on the fifth data line". You can't use "it's the last field that is 8 chars long" as this will cause false triggers...
****************************************************************
Liste
TYPE = XXXXXXX
EX = YYYY
VER = S
DATE = 20160601
HEURE = 134701
EX = CUTAFAAQ
VER = X
DATE = 20160601
HEURE = 134701
****************************************************************
****************************************************************
Liste
TYPE = XXXXXXX
EX = YYYY
VER = S
DATE = 20160601
HEURE = 134701
EX = CVGSTDA
VER = X
DATE = 20160601
HEURE = 134701
****************************************************************
****************************************************************
Liste
TYPE = XXXXXXX
EX = YYYY
VER = S
DATE = 20160601
HEURE = 134701
EX = BGVDTA
VER = X
DATE = 20160601
HEURE = 134701
****************************************************************
i don't know in advance how many times i have it.
So in this case, i would like to get the string :
CUTAFAAQ, CVGSTDA and BGVDTA
because it appears three times. But it cas appears foor, five, six ...times