I get the same answer for Bash, but I'm asking if not for Shaw.
I have a $ STRING, which includes "Jun01 Jun02 Jun03 Jun04". I would like to put it in the array that $ {ARRAY [0] is "June 99", $ {ARRAY [1]} is "June 02" and so on.
How can I do this? Thank you.
You can not handle ARMS basically in the standard (Born) shell.
See for more information.
C shell (47.5), awk (33.11), corn shell and some other Unix command interpreters have supported the built-in array. Standard Born Shell, although its command line is a kind of array that you can store with the set (44.19) command - and get values stored through $ 1, $ 2, etc.
I will try and use bash (as you have known) or more fully featured scripting language (no doubt others will give their favorite suggestions!)
Comments
Post a Comment