Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Loops-Break/UNIX-Shell/loops-break-1.sh
Normal file
7
Task/Loops-Break/UNIX-Shell/loops-break-1.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
while true; do
|
||||
a=`jot -w %d -r 1 0 20` || exit $?
|
||||
echo $a
|
||||
test 10 -eq $a && break
|
||||
b=`jot -w %d -r 1 0 20` || exit $?
|
||||
echo $b
|
||||
done
|
||||
5
Task/Loops-Break/UNIX-Shell/loops-break-2.sh
Normal file
5
Task/Loops-Break/UNIX-Shell/loops-break-2.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
while true; do
|
||||
echo $((a=RANDOM%20))
|
||||
[ $a -eq 10 ] && break
|
||||
echo $((b=RANDOM%20))
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue