Skip to content

Commit

Permalink
added while.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas99341 authored Jul 21, 2022
1 parent ece9a80 commit 40c09fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Shell-Script/while.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

valid=true
count=1

while [ $valid ]
do
echo $count

if [ $count -eq 5 ];
then
break
fi
((count++))
done

0 comments on commit 40c09fb

Please sign in to comment.