Dan Jablonsky wrote:
>
> Hi all,
> I'm trying to come up with a simple perl script that
> would open a directory and would delete all files
> under a certain size. I played a while with ls and
> stat but I'm not going anywhere.
> I can't tell where the output of the stat command is
> going since I have all I need in that output. It would
> probably be easy to parse it and get the file size and
> then compare it to some number...
> Anybody any idea?
opendir, readdir, closedir and stat
or
File::Find and stat
Repost your code attempt if you can't get it to work.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.webjump.com/ (Free Perl site)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users