I did not figure out how to solve this question after take a look in the main discussion lists.
I have a data_file like this one:
regex1 - grab general informations about regex1
grab more informations on this line about regex1
grab more informations on this line about regex1
grab more informations on this line about regex1
grab more informations on this line about regex1
grab more informations on this line about regex1
...
grab more informations on this line about regex1
regex2 - grab general informations about regex2
grab more informations on this line about regex2
grab more informations on this line about regex2
grab more informations on this line about regex2
grab more informations on this line about regex2
grab more informations on this line about regex2
...
grab informations on this line
regex3 - grab general informations about regex3
grab more informations on this line about regex3
grab more informations on this line about regex3
grab more informations on this line about regex3
grab more informations on this line about regex3
grab more informations on this line about regex3
...
EOF
I'm using a do-until inside a while loop:
It works, but it returns to while loop in the first line after regex2. So, I cannot check for regex2 and get general informations about it. Thanks for any help.while<data_file> { if(/regex1/) { get some general informations about regex1 do { get more informations in lines between regex1 e regex2 } until(/regex2/) } }
In reply to do-until inside while loop control by mtorba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |