[clue] bash scripting question
Dan Kulinski
daniel at kulinski.net
Wed Feb 20 15:32:37 MST 2013
You want to append to the array?
http://stackoverflow.com/questions/1951506/bash-add-value-to-array-without-specifying-a-key
Dan
On Wed, Feb 20, 2013 at 3:17 PM, Mike Bean <beandaemon at gmail.com> wrote:
>
> My google fu is failing me, see if I can describe what I'm thinking.
> I think in Python ( I might be wrong) array[-1] means the value on the end
> of an array. Essentially, you're appending to the end of an array, array
> with two values becomes three, array with three values becomes for.
>
> Essentially what I'm asking, is there a way in bash for an assignment
> statement to do the same thing? Just add varX to the end of an array?
>
> I know I could set up a loop for example, just use a counter variable that
> increments up once each time you write to the array, but my instincts are
> telling me there should be a simpler method.
>
> Mike
>
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20130220/722ba80a/attachment.html
More information about the clue
mailing list