Am 28.11.2010 10:29, schrieb M Watts: > On 11/27/2010 08:18 PM, Atte André Jensen wrote: > >> atte@vestbjerg:~$ locate .wav | grep .wav$ | wc -l > > Why do people always pipe grep into wc -l for a count?? :P > > grep has a count option builtin > > locate .wav | grep -c .wav And why the pipe? locate can do this trick on its own: locate -c .wav ;-) > _______________________________________________ > Linux-audio-user mailing list > Linux-audio-user@xxxxxxxxxxxxxxxxxxxx > http://lists.linuxaudio.org/listinfo/linux-audio-user > _______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/listinfo/linux-audio-user