mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-16 13:42:26 -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
12
shell/shell_scripts/lessons/file_descriptors.sh
Executable file
12
shell/shell_scripts/lessons/file_descriptors.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# from > & destination
|
||||
|
||||
if [ $# -ne 2 ]
|
||||
then
|
||||
echo "Error!" 1>&2
|
||||
echo "Usae: $0 number1 number2"
|
||||
exit 1
|
||||
fi
|
||||
ans=`expr $1 + $2`
|
||||
echo "Sum = $ans"
|
Loading…
Add table
Add a link
Reference in a new issue