• [^] # Re: j'ajouterai

    Posté par (site web personnel) . En réponse au message Urgent, s'il vous plait. Évalué à 2.

    Soyons sympa : http://www.shellunix.com/awk.html Franchement ton pb.o fait 3 lignes ! Et le code une 20aine !
    une fonction qui prend en argument 2 variable R1,R2
    pour chaque ligne du fichier 
     fonction qui fait le calcul res=xG^2+yG^2+zG^2
     puis tester le resultat R1^2<= $res<= R2^2
     si ok > echo $ligne 
     si nonok > rien
    prog principal : prends la liste R
    Last_R=$LIST_R[ 0]
    i=1
    for R in $LIST_R[ i]
     {
     tonfichier=file$R_Last$R
     tafonction($R_Last,$R) > $tonfichier
     }