APL/SCR1.2/TP07/my_seq.sh

27 lines
203 B
Bash
Raw Normal View History

2021-11-16 15:32:33 +01:00
#!/bin/bash
if [[ $# -lt 1 ]]
then
echo"usage:my_seg.sh <integer>"
exit
fi
if [[ $1 -lt 0 ]]
then
echo "Argument must be postivite !!"
exit
fi
for ((i=1;i<=$1;i++))
do echo $i
done
exit