SCR/TP08/my_seq.sh

17 lines
220 B
Bash
Raw Normal View History

2022-11-15 15:35:45 +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