mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-13 04:02:18 -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
15
shell/shell_scripts/lessons/arguments.ssh
Executable file
15
shell/shell_scripts/lessons/arguments.ssh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#! /bin/bash
|
||||
# script to test for loop and arguments
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Error - Number missing form command line argument"
|
||||
echo "Syntax : $0 number"
|
||||
echo "Use to print multiplication table for given number"
|
||||
exit 1
|
||||
fi
|
||||
n=$1
|
||||
for i in 1 2 3 4 5 6 7 8 9 10
|
||||
do
|
||||
echo "$n * $i = `expr $i \* $n`"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue