Shell script ile while loop yaparken birden fazla durumu karşılaştırmak için and kullanmak istiyorum ama bir türlü beceremedim.
while [ $iperrorcode != "0" -a $nmerrorcode != "0" ]; do datacollectionfunc ipcheckfunc $(cut -d'|' -f2 <<<"$data") netmaskcheckfunc $(cut -d'|' -f3 <<<"$data") doneiperrorcode ve nmerrorcode 1 olduğu zaman güzel şekilde loop içinde kalıyor ama herhangibirinin değeri değişince loop bozuluyor ama ben and parametresi kullanıyorum bir türlü anlamadım.