Forum Discussion
koheed_51878
Nimbostratus
Jul 14, 2013double whitespace as terminator in "findstr"
Hi All(long time lurker, first time poster)
Sorry if this has been addressed but is there a way to use two whitespaces as the terminator in a findstr.
Eg. To extract 123456 from: ".....
nitass
Employee
Jul 15, 2013Thanks for the suggestion it looks like that doesn't seem to catch it either.it seems working here.
e.g.
[root@ve11a:Active:Changes Pending] config tmsh list ltm rule myrule
ltm rule myrule {
when RULE_INIT {
set test "Header1 1wr2s34d5h6 Header2 789 :10 Header3"
log local0. $test
log local0. "\[findstr $test Header1 8 \" \"\] [findstr $test Header1 8 " "]"
}
}
[root@ve11a:Active:Changes Pending] config tail -f /var/log/ltm
Jul 16 04:56:02 ve11a info tmm1[8160]: Rule /Common/myrule : Header1 1wr2s34d5h6 Header2 789 :10 Header3
Jul 16 04:56:02 ve11a info tmm1[8160]: Rule /Common/myrule : [findstr Header1 1wr2s34d5h6 Header2 789 :10 Header3 Header1 8 " "] 1wr2s34d5h6
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