in reply to Back in the saddle...

In the output of ifconfig the word 'inet' is always followed by a space, your regexp requires it to be followed by a word-character (\w), so the regexp never matches and the variables don't contain anything.


We're not surrounded, we're in a target-rich environment!