Hello everyone,
using ksh so far I know that if I would like to fill an Array I can e.G. use something like this:
But what if I do not wish to fill the Array all at once ?
Let's say I have a list of Servers. Now I ping each one and only if the ping fails the Name of the Server shall be inserted into an Array.
What's an elegant way of doing it ?
Regards,
Thomas
using ksh so far I know that if I would like to fill an Array I can e.G. use something like this:
Code:
set -A arrayname $(cat file)
set -A arrayname $(some command)
But what if I do not wish to fill the Array all at once ?
Let's say I have a list of Servers. Now I ping each one and only if the ping fails the Name of the Server shall be inserted into an Array.
What's an elegant way of doing it ?
Regards,
Thomas