Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions 08-count.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,19 @@ done

# exercise: Loop over some type of files and use the
# "grep" UNIX command to find snippets of strings in them.
echo "Counting finished!"

# Backward counting
for i in {10..1}
do
echo "Backward: $i"
done

# New feature: count even
for i in {1..10}
do
if (( i % 2 == 0 ))
then
echo "Even: $i"
fi
done
Binary file added after_merge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added branches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.