Forum Discussion
hooleylist
Oct 05, 2011Cirrostratus
Hi Adam,
No, you can't use awk from an iRule. But you can use string functions or a regex to do this. You could use the getfield string function for this to avoid the overhead of a regex:
set subdomain [getfield [HTTP::host] "company.com" 1]
HTTP::replace Host "$subdomain.company.com"
For details on the getfield command, you can check the wiki page:
http://devcentral.f5.com/wiki/iRules.getfield.ashx
Aaron