Phill,

So, I need to extract 222.152.182.159 using bash from the above string
using bash scripting so I can update $CVSROOT.


I'm a bit rusty on the bash string manipulation. Can anyone give me a
solution off the top of their head?



You *might* be better off with....

host $(who | cut -d\( -f2 | cut -d\) -f1) | cut -f3

Cheers, Rex

Reply via email to