• # Réponse sed

    Posté par . En réponse au message Question sed. Évalué à 4.

    cat test/gremous.txt
    td width="40%" class = "br_tb">prints(m_IPaddr); :
    td colspan=2 class = "bl_tb" >
    117.18.244.113

    sed -n '/prints(m_IPaddr)/N; N; s/.*\t\+\(\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\)$/1円/p' test/gremous.txt
    117.18.244.113