mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-18 06:30:29 -04:00
move shell scripts and zsh and add fav vscode themes
This commit is contained in:
parent
40077637ce
commit
e6794a8954
43 changed files with 55 additions and 34 deletions
16
shell/shell_scripts/lessons/while_loop_example.sh
Executable file
16
shell/shell_scripts/lessons/while_loop_example.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# script to test while statement
|
||||
|
||||
if [ $# -eq 0 ] # note the spaces
|
||||
then
|
||||
echo "Error, missing argument!"
|
||||
exit 1
|
||||
fi
|
||||
n=$1
|
||||
i=1
|
||||
while [ $i -le 10 ]
|
||||
do
|
||||
echo "$n * $i = `expr $i \* $n`"
|
||||
i=`expr $i + 1`
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue