question de shell script tout con ..

Αρχική Σελίδα

Reply to this message
Συντάκτης: Sylvain Pogodalla
Ημερομηνία:  
Προς: Philippe B
Υ/ο: guilde
Αντικείμενο: question de shell script tout con ..
>>>>> "Philippe" == Philippe B <philippe@???> writes:

    Philippe> j'ai un fichier texte qui contient des IPs comme ca :


    Philippe> 1.2.3.4 5.6.7.8 etc...


    Philippe> je voudrais avoir un script sh qui prenne chaque ligne
    Philippe> de ce fichier texte et qui me lance une commande du
    Philippe> genre :


    Philippe> ping 1.2.3.4


    Philippe> etc..


    Philippe> une idée ?


cat my_file | xargs -n 1 ping

S.