so I'm trying to compare user lists in bash, file vault enabled users vs users I've defined. As a test I ran:
for i in "$ulist"; do
if ($i == *testuser*) || ($i == *otheruser*)
then
echo "dont' change $i"
else
echo "change $i"
fi
done
but it only returns
testuser
otheruser
x
y
change z
for the record:
ulist=$(fdesetup list | cut -d',' -f1)
any idea why it just cycles through the whole list without really comparing it the way I want it to? In the end I want to be able to skip modifying the users that I've told it skip.
forargument produces exactly one iteration.