I am trying to get a value from a remote machine into a local variable. To get this value i want to use awk but im having trouble getting it to run, am i escaping in the right places here and using the right quotes (i must have tried a million combinations :()
Hi thanks for the reply, i certianly looks neater than my code .
---------- Post updated at 09:52 PM ---------- Previous update was at 09:33 PM ----------
I wonder if i could ask a question about the simplification you have done above (which by the way is fab). I have a similar piece of code that uses sed, head, grep and culminates in an awk if statement, is there also a way of simplifying this or would i need to pipe it to another awk statement ?
I am really interested in how you are doing this ? i didn't realise it could be trimmed down this much
this is my current code (which i need to variabize as per your solution above)