shell-whiz-toolkit/shell_scripts/lessons/file_descriptors.sh
2014-07-05 18:22:01 -04:00

12 lines
No EOL
161 B
Bash
Executable file

#!/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"