Forum Discussion
don_23889
Nimbostratus
Dec 28, 2009grep'ng for 'string' in bigip.conf
grep'ng for 'string' and returning entire block of object definitions from bigip.conf for each instance of 'string', starting with 'virtual' and ending with '}'
config less bigip.con...
hoolio
Cirrostratus
Jan 02, 2010I think these examples might break with an iRule which has a closing brace on an empty line within the iRule code. Many iRules in the bigip.conf have un-indented lines for the event definitions:
rule rule1 {
when RULE_INIT {
blah blah
} <---------
when HTTP_REQUEST {
if (blahblah1) {
blah blah ...
if (blahblah2) {
blah blah ...
}
} else {
blah blah ...
}
} <---------
}
It would be ideal if you could actually check for the closing curly brace that corresponds to the object definition--not just the first closing brace alone on a line (\n}\n). But I'm not sure how to do this in awk or perl.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
