• [^] # Re: Solution quick & dirty Bash

    Posté par (site web personnel) . En réponse au message Le plus petit. Évalué à 0. Dernière modification le 24 août 2012 à 08:26.

    ou encore

     awk '{ for (i=1; i<=NF; i++) { if (i%5==1) { nb=$i } if (i%5==0) { print nb" "$i } } }' tmp.txt | sort -n
    
    

    Ce qui donnerai

    awk '{ for (i=1; i<=NF; i++) { if (i%5==1) { nb=$i } if (i%5==0) { print nb" "$i } } }' < <(grep personnes /tmp/fip_occupation | cut -d '<' -f2 | cut -d '"' -f2) | sort -n
    
    

    Is it a Bird? Is it a Plane?? No, it's Super Poil !!!