Developpement/23SCR/SCR08/my_seq.sh

16 lines
206 B
Bash
Raw Normal View History

2024-12-09 11:53:11 +01:00
#!/bin/bash
if [[ $# -lt 1 ]]
then
echo " Usage : $0 <integer number>"
exit
fi
if [[ $1 -lt 0 ]]
then
echo " Argument must be positive ! "
exit
fi
for (( i=1 ; i<= $1 ; i++))
do
echo $i
done
exit