Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Created December 26, 2023 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/4f266ec0b9d6f025bedee92048665790 to your computer and use it in GitHub Desktop.
Save kjunichi/4f266ec0b9d6f025bedee92048665790 to your computer and use it in GitHub Desktop.
fbat=true
floop=true
i=0
if [ $fbat ]; then
echo "a0"
else
echo "a1"
fi
while $floop; do
# fi
i=`expr $i + 1`
echo "i = $i"
if [ $i -gt 3 ]; then
floop=false
fi
# if [ $fbat ]; then
done
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment