in reply to getting filesize in windows
Hi peamasii,
Here is a one liner that will look at all the files under your current directory, and sum the sizes of all files ending in mp3 (or Mp3 or MP3 etc)
The quotes may need changing for Window's though. I have no means of checking here, but it should be ok to insert into a script
perl -MFile::Find -le 'find ( sub { $s+= -s if /mp3$/i }, "." );print "size $s"'cheers
thinker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: getting filesize in windows
by Chady (Priest) on Aug 23, 2003 at 10:41 UTC | |
by Peamasii (Sexton) on Aug 23, 2003 at 22:45 UTC |
In Section
Seekers of Perl Wisdom