Skip to content

Instantly share code, notes, and snippets.

@abhinav1592
Created May 21, 2023 11:45
Show Gist options
  • Save abhinav1592/4a6670ba01a6d9c14a1a5a4dd38bf607 to your computer and use it in GitHub Desktop.
Save abhinav1592/4a6670ba01a6d9c14a1a5a4dd38bf607 to your computer and use it in GitHub Desktop.
#!/bin/bash
i=0
while [[ $i -lt 11 ]]
do
if [[ "$i" == '10' ]]
then
echo "Number $i!"
sleep 0.5
break
fi
echo $i
((i++))
done
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment