Bash regular expressions in RHEL 6 - TAM tip
Quoted regular expressions no longer work in '[[ ]]' in Red hat Enterprise Linux 6. The way to do this now is to assign the regex pattern to a variable and then use the variable in a test.
if ![[ $info =~ 'Link encap:Ethernet HWaddr (.*)' ]]
info2='Link encap:Ethernet HWaddr (.*)' if ![[ $info =~ $info2 ]]
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
