Hi,
How to store the values in array from output result,
EG:
I have the result like this,
ps, google, 1.txt, 1
sam, google, 2.txt, 2
These are the four values followed by comma in two sets. I need to store these values set by set. One set contains four values followed by comma.
Script should run one set by set. Once complete the first set, it should take second.
for i in ${name[@]}
do
echo $i
done
USAGE="$0 [initial] [name] [txt file] [value:0|1]
Those values should store in these variable, once its get first set, script should run follows, this should be in loop
Please give some idea