Bonjour,
Avec un script shell j'aimerai généré la liste suivante en une seule ligne de commande:
1 2 3 4 5 6 7 8 9 10
| for ((a=1; a<=4 ; a++));do echo "--outfile Test1-part$a.txt" ; done;
--outfile Test1-part1.txt
--outfile Test1-part2.txt
--outfile Test1-part3.txt
--outfile Test1-part4.txt
for ((a=1; a<=4 ; a++));do echo "--outfile Test2-part$a.txt" ; done;
--outfile Test2-part1.txt
--outfile Test2-part2.txt
--outfile Test2-part3.txt
--outfile Test2-part4.txt |
Pour l'instant j'utilise la ligne de commande :
for ((a=1; a<=4 ; a++));do echo "--outfile Test2-part$a.txt" ; done;
Elle est limitée à l'incrémentation du chiffre qui est après le terme "part", mais comment incrémenter le chiffre qui est après "Test".
D'avance Merci ....
Partager