This commit is contained in:
2024-09-10 15:13:11 +02:00
commit 778bb476fa
140 changed files with 6123 additions and 0 deletions

12
SCR1.2/TP08/my_seq.sh~ Executable file
View File

@@ -0,0 +1,12 @@
if [ $# -eq 0 ]; then
echo "Usage: $0 <nombre>"
exit 1
fi
if ! [[ $1 =~ ^[1-9][0-9]*$ ]]; then
echo "Erreur : L'argument doit être un entier positif."
exit 1
fi
for ((i=1; i<=$1; i++)); do
echo $i
done