Update
This commit is contained in:
16
TP08/my_seq.sh
Executable file
16
TP08/my_seq.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
4
TP08/tp08-reponses.txt
Normal file
4
TP08/tp08-reponses.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Question 3b)
|
||||
echo "$? x=$x" affiche 0 x = 7
|
||||
echo "$? x=$x" affiche 0 x =
|
||||
echo "$? x=$x" affiche 1 x =
|
Reference in New Issue
Block a user