14 lines
146 B
Bash
14 lines
146 B
Bash
|
#shell
|
||
|
#This script counts to 5
|
||
|
if [ $# -ne 1 ]
|
||
|
then
|
||
|
echo usage: test2.sh number
|
||
|
exit
|
||
|
fi
|
||
|
echo $1
|
||
|
if [ $1 -lt 5 ]
|
||
|
then
|
||
|
let a=$1+1
|
||
|
./test2.sh $a
|
||
|
fi
|