Hi everyone,
I'm trying to get my head around this foreach statement but no luck so far ...
Foreach seems like the most obscure command ever ....
foreach * means everything ... but everything in what?
foreach ... in the example on the docs ... they use new variables but I want to know how you can/are supposed to run through your dataset?
Say you have a simple dataset as a result:
bytes in bytes out
www1 1200 3000
www2 4500 3600
db1 4900 5000
these are values in bytes and I want them converted in kBs but let's say I only want it to be done to the bytes out of every webserver (www*) and the bytes in need to stay in bytes.
How can I match that with this foreach?
Thanks
Kristof
... View more