[Linux-bruxelles] grep

Michel Kapel michel.kapel at gmail.com
Jeu 26 Sep 15:13:42 CEST 2013


C'est bizarre, moi
ls -lrt *.txt | grep heme
cela donne bien une ligne de ls avec Ephemerella.txt

Mais c'est une ligne complète de ls, faut découper après.


Le 26 septembre 2013 15:01, Aldo <info at brlspeak.net> a écrit :

> On Thu, Sep 26, 2013 at 02:55:50PM +0200, Kenny wrote:
> > Le 26/09/13 14:51, Kenny a écrit :
> > >Bonjour,
> > >
> > >Le 26/09/13 14:46, Aldo a écrit :
> > >>Hello,
> > >>
> > >>On Thu, Sep 26, 2013 at 02:26:05PM +0200, Dany De Bontridder wrote:
> > >>>Tu pourrais essayer ???
> > >>>
> > >>>ls -lrt *.txt | xargs grep xx
> > >>ça ne marche pas du tout:
> > >Essaie sans le 'xargs'
> > >ls -lrt ./*.txt | grep elenet
> >
> > Oups.. avec rgrep ça marchera mieux..
> > ls -lrt ./*.txt | rgrep elenet
>
> Hm, sorry, non tj pas; regarde ma sortie typescript:
>
> Script started on do 26 sep 2013 14:58:18 CEST
> aldo at asteroid:~/zeezicht-map/budget$ ls -lrt ./*.txt |rgrep -i telenet
> ça me redonne juste le promt!
> aldo at asteroid:~/zeezicht-map/budget$ ls -lrt ./*.txt |rgrep elenet
> idem!
> aldo at asteroid:~/zeezicht-map/budget$ ls -lrt *.txt |rgrep elenet
> aldo at asteroid:~/zeezicht-map/budget$
> idem!
> Script done on do 26 sep 2013 14:59:03 CEST
>
> Aldo.
>
> _______________________________________________
> Linux-bruxelles mailing list
> Linux-bruxelles at lists.bxlug.be
> https://listes.domainepublic.net/listinfo/linux-bruxelles
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: </pipermail/linux-bruxelles/attachments/20130926/7e95ded4/attachment-0003.html>


Plus d'informations sur la liste de diffusion Linux-bruxelles