vendredi 14 mai 2010

Petite boucle bash, lister des occurences fichiers dans un repertoire

Cette boucle liste les fichiers dans un répertoires et les lit afinde trouver les occurences dns.

for f in $(ls); do cat $f | grep dns; echo $f; done

2010/05/14 22:10:01 I gogoc: Received: '200 Success<tunnel action="info"                   type="v6udpv4" lifetime="604800">  <server>    <address type="ipv4">81.                  171.x.x</address>    <address type="ipv6">2001:05c0:0:0001</address>  </server>  <client>    <address type="ipv4">88.17                  5.x.x</address>    <address type="ipv6">2001:05c0:1400:000b:0000:0000:                  0000:6c87</address>    <address type="dn">tribou.broker.freenet6.net</ad                  dress>    <dns_server>      <address type="ipv6">2001:05c0:1000:0011::0002</address>    </dns_server>    <router>      <prefix len                  gth="16">2001:05c0::0000</prefix>    </router>                      <keepalive interval="30">      <address type="ipv6">2001:05c0::6c86</address>    </keepalive>  </client></tunnel>'
gogoc.20100514225704.log
gogoc.log

AKABOU

Aucun commentaire:

Enregistrer un commentaire