-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env juokse | ||
|
||
bot = 99 | ||
|
||
while [ $bot -gt 1 ]: | ||
printf "%d bottles of beer on the wall,\n" $bot | ||
printf "%d bottles of beer!\n" $bot | ||
printf "You take one down, pass it around,\n" | ||
|
||
bot = `expr $bot - 1` | ||
|
||
printf "%d bottles of beer on the wall!\n\n" $bot | ||
|
||
echo "1 bottle of beer on the wall," | ||
echo "1 bottle of beer!" | ||
echo "You take it down, pass it around," | ||
echo "No more bottles of beer!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env juokse | ||
|
||
for i in foo bar baz: | ||
echo $i | ||
|
||
i = 0 | ||
while [ $i -ne 10 ]: | ||
i = `expr $i + 1` | ||
if [ $i -eq 3 ]: | ||
continue | ||
echo $i |