12 lines
201 B
Bash
12 lines
201 B
Bash
|
#!/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
|