Bonjour je suis novice en scripting quelqu un pourrais me dire si ce script pour afficher le nombre de carte grphique par ligne et les ecrire dans un fichier
texte est justemerci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 #!/bin/bash my_function (){ my_array = ("curl http://0.0.0.0:5000/rtx3060" "curl http://0.0.0.0:5000/rtx3070" "curl http://0.0.0.0:5000/rtx3080" "curl http://0.0.0.0:5000/rx6700") for x in 'curl http://0.0.0.0:5000/rtx3060' 'curl http://0.0.0.0:5000/rtx3070' 'curl http://0.0.0.0:5000/rtx3080' 'curl http://0.0.0.0:5000/rx6700' do echo rtx3060:${my_array[0]} \n rtx3070:${my_array[1]} \n rtx3080:${my_array[2]} \n rx6700:${my_array[3]} \n > sales.txt done}
Partager