Hello.

Dan Heller wrote:
> 
> Is this an oversight or omission?
> I want to do:
> $ locate .jpg | sed [...] | du -c -b

Why should du read a list of files on stdin?

You can use xargs to convert stdin to a list of parameters:

    locate .jpg | sed [...] | xargs du -c -b

xargs comes with GNU findutils.

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to