AUTHOR

Any korn shell experts here

doubt it.
can i name a variable based on something else...like

if [[ i="abc" >>
then
$i_abc=5
elif [[ i="def>>
then
$i_abc=6

fi

so then i should be able to see def_abc as 6
lunitik quote:
Expert enough to know to avoid it...

zsh >

i use ibm stuff and i used to work for them, its the preferred shell bub
lunitik quote:
that just looks wrong... for instance, you define i twice - although second has a typo so wouldn't work...

should output abc_abc as 5 and def_abc as 6 though I guess?

seems utterly pointless, but ok

this isn't a korn script though, its just a shell script
its a quick example, i have a while statement that runs through a list of servers, i need to create a unique variable for each one.
lunitik quote:
that just looks wrong... for instance, you define i twice - although second has a typo so wouldn't work...

should output abc_abc as 5 and def_abc as 6 though I guess?

seems utterly pointless, but ok

this isn't a korn script though, its just a shell script
where did i define i twice bro?
lunitik quote:
that just looks wrong... for instance, you define i twice - although second has a typo so wouldn't work...

should output abc_abc as 5 and def_abc as 6 though I guess?

seems utterly pointless, but ok

this isn't a korn script though, its just a shell script
if i=abc
else if i=blah

you dumb?
lunitik quote:
nm, see what SPUTNIK said
i need meth
lunitik quote:
$? is for creating unique variables I thought?
u tell me bub, thats why i posted the question, u fuck

Quick reply

Sign in to post a message.
Smileys

Times shown in Eastern Time (ET).