[EMAIL PROTECTED] wrote:
> 
> hi,

Hello,

> is it possible to get the size of special files in a directory?

Yes.

> i need the size of all gz or html files.

my $total_size;
$total_size += -s for <*.gz *.html>;

> this works, i did it with glob.
> but how can i get the size of files that match a pattern? for example
> all filesnames that contain the string "setup".

my $total_size;
$total_size += -s for <*setup*>;

> or all files that are
> younger than 7 days and not bigger as 100k and end with gz.

my $total_size;
-M < 7 and -s _ < 100_000 and $total_size += -s _ for <*.gz>;


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to