On 11/27/2010 08:18 PM, Atte André Jensen wrote: > atte at 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