Apr 22, 2005 #1 vuakhobo Technical User Apr 22, 2004 41 US Is there a way to append new record at the end of the existing array?
Apr 22, 2005 1 #2 PHV MIS Nov 8, 2002 53,708 FR Any chance you could post your actual code and explain us what do you want to do ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Any chance you could post your actual code and explain us what do you want to do ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Apr 22, 2005 Thread starter #3 vuakhobo Technical User Apr 22, 2004 41 US set -A ArrayID 'A''B''C' #Call CalculateTime function for h in "${ArrayID[@]}" do echo $h done Say if I have new record D need to add to ArrayID how can I append it to ArrayID Upvote 0 Downvote
set -A ArrayID 'A''B''C' #Call CalculateTime function for h in "${ArrayID[@]}" do echo $h done Say if I have new record D need to add to ArrayID how can I append it to ArrayID
Apr 22, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR ArrayID[${#ArrayID[*]}]='D' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
ArrayID[${#ArrayID[*]}]='D' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Apr 22, 2005 Thread starter #5 vuakhobo Technical User Apr 22, 2004 41 US PHV, thank you PHV .. it works like a charm. Upvote 0 Downvote
Oct 14, 2005 Thread starter #6 vuakhobo Technical User Apr 22, 2004 41 US PHV, I have this array, ArrayID 'A''B''C' Is there anyway that I can create 3 arrays from the ArrayID's list? Upvote 0 Downvote
PHV, I have this array, ArrayID 'A''B''C' Is there anyway that I can create 3 arrays from the ArrayID's list?