hi,
I have this array
a=("" "" "")
Is there a command that I can use to check if all members of the are empty?
I really don't like to use for or while loop.
thanks!
---------- Post updated at 02:23 PM ---------- Previous update was at 02:15 PM ----------
wait, I got it already
i=echo ${a[@]} | wc -w
if [ $i -eq 0] ; then
echo empty
fi
anyway, any other solutions will be appreciated