On lun, oct 14, 2002 at 12:22:09 +0200, Benoit Mordelet <[EMAIL PROTECTED]> wrote: > Stephane List wrote: > >Salut, > > > >Quand je fais un grep sur un fichier texte dont la dernière ligne ne > >contient > >pas un eol (end of line), grep me dit que mon fichier est binaire ! > >Comment fait on pour ajouter un eol, ou pour tromper grep ? > > salut, > > pour ajouter un eol a la fin du fichier : > echo >> fichier
Ca ne marche pas Fais le test : wget -O toto http://fr.finance.yahoo.com/q?d=v1&s=13000&m=PA grep gif toto echo >> toto grep gif toto > > pour dire a grep de traiter le fichier comme un fichier texte : > man grep > > -a, --text > Process a binary file as if it were text; this is > equivalent to the --binary-files=text option. > grep -a marche bien, merci > a+ > ben > > > Linux-Azur : http://www.linux-azur.org > Désinscriptions: http://www.linux-azur.org/liste.php3 > **** Pas de message au format HTML, SVP **** > -- Stephane List Linux-Azur : http://www.linux-azur.org Désinscriptions: http://www.linux-azur.org/liste.php3 **** Pas de message au format HTML, SVP ****
