mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-17 06:02:17 -04:00
some sytem scripts
This commit is contained in:
parent
4b0a965e4a
commit
5852171b21
25 changed files with 639 additions and 1 deletions
12
shell_scripts/lessons/file_descriptors.sh
Executable file
12
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