SCR/TP08/my_other_seq.sh

12 lines
201 B
Bash
Raw Normal View History

2023-12-09 17:51:11 +01:00
#!/bin/bash
if [[ $# -lt 2 ]];
then
echo "Merci de mettre deux arguments stp"
else
taille=$(expr length $2)
for ((i=$1;i<=$taille;i++))
do echo $(expr substr $2 $i 1)
done;
fi
exit