SCR/TP08/my_seq.sh
2022-11-15 15:35:45 +01:00

17 lines
220 B
Bash
Executable File

#!/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