Hi guys...
I got this code and it reads a line with userinfo all seperated by spaces.
(Example: Div irchighway me haha)
My script intents to place all this data together seperated by dots.
The only way I figured would work is with $gettok
Although there seems to be something tricky...
as you can see below I call an echo just in the same way I want to define my local variable %temp. Only the echo return without issues, but when trying to assign the local variable %temp, it tells me: Invalid format: $gettok on the line where %temp is assigned... What am I doing wrong?
Or does anyone know a better way?
var %testdot $gettok(%test,1,32)
var %c 2
echo -a starting $gettok(%test,%c,32)
while ($gettok(%test,%c,32) != $null) {
echo -a starting2 $gettok(%test,%c,32)
var %temp $gettok(%test,%c,32)
var %testdot %testdot $+ . $+ %temp
unset %temp
inc %c
echo -a dots = %testdot
}
Thanks in advance for all replies!