SCR/SCR1.2/TP08/my_seq.sh

17 lines
220 B
Bash
Raw Normal View History

2022-11-29 15:40:14 +01:00
#!/bin/bash
## A simple script shell which reproduces the
## $(seq) behaviour
if [[ $# -lt 1 ]]
then
echo "Usage : my_seq.sh <number_of_iterations>"
exit
fi
for ((i = 1; i <= $1; i++))
do
echo $i
done
exit