Andrei Alexandrescu, el 24 de noviembre a las 13:09 me escribiste: > On 11/24/10 12:56 PM, Graham Fawcett wrote: > >On Wed, 24 Nov 2010 18:49:23 +0000, Iain Buclaw wrote: > > > >>== Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article > >>>$ find /usr/include/d/dmd/ | xargs grep "RAND_MAX.*=" > >>>/usr/include/d/dmd/druntime/import/core/stdc/stdlib.di: enum > >>>RAND_MAX = 32767; > >>>/usr/include/d/dmd/druntime/import/core/stdc/stdlib.d:enum RAND_MAX > >>>= 32767; > >> > >>Why the ugly pipe to xargs? > >> > >>grep -R "RAND_MAX.*=" /usr/include/d/dmd > > > >I knew someone was going to call me on that. :) > > > >I spend some time on Linux, and some on Solaris. While Solaris has > >"ggrep" which supports -R, the Solaris "grep" does not. By force of > >habit, I spell it "find/grep" to make scripts more portable. > > > >But it's a kludge. Kids, don't try this at home, "grep -R" is > >definitely your friend. :) > > > >I hear that "ack" is also nice, though I don't know if it supports D > >sources out of the box. (ack: http://betterthangrep.com/) > > > >Best, > >Graham > > You guys should use zsh. > > grep "RAND_MAX.*=" /usr/include/d/dmd/**/*
Bash (4) does that too :) -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Vaporeso, al verse enfundado por la depresión, decide dar fin a su vida tomando Chinato Garda mezclado con kerosene al 50%. Ante el duro trance pierde la movilidad en sus miembros derechos: inferior y superior. En ese momento es considerado como el hombre líder del movimiento de izquierda de Occidente.