• [^] # 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:37.

    nota tu peux faire exactement la même chose sans utiliser awk

    i=1
    for mot in $(grep personnes /tmp/fip_occupation | cut -d '<' -f2 | cut -d '"' -f2); do
     if (( i%5==1 )); then
     nb=$mot
     elif (( i%5==0 )); then
     echo $nb" "$mot
     fi
     i=$(( i + 1))
    done
    
    

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