[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file size utility
- Subject: Re: file size utility
- From: Dan Clark <dalclark@xxxxxxx>
- Date: Thu, 09 Jun 2005 16:52:06 -0400
If there are no spaces in the names and file names...
In bash: x=`find ~ -type f -iname "*.avi"`; du -ch $x
will work nicely. I dont know about spaces. Maybe someone else can get
that working nicely ;)
-Dan
Jacob Fugal wrote:
> Hello,
>
> I know how to use "find" to get a list of files I want, but now I need
> to get the total size of all those files. Do I need to write a script
> or is there a command to do this in Linux? Again, I need to sum the
> total size of all the files matching a certain pattern (like *.png)
> recursively below some directory.
>
> Jacob Fugal
> jpfugal@xxxxxxx