SCR/SCR.1.2/TP08/my_seq.sh
2022-11-16 09:17:18 +01:00

18 lines
191 B
Bash
Executable File

#!/bin/bash
if [[ $# -lt 1 ]]
then
echo "Usage: $0 : <positive-int>"
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