in reply to Re: Re: cron job to delete files?
in thread cron job to delete files?

I just figured I was writing a perl script to do a job

There's probably no good reason to use Perl for that. I would think that rm would do just fine.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: Re: cron job to delete files?
by bobn (Chaplain) on Jul 04, 2003 at 04:20 UTC
    Unless the filename varies in some complicated way (simple example - the files are named for the yyMMDD and you want to delete yesterday's file) or there are other factors that need the power of perl. I used to do not very complicated stuff in ksh scripts (before I knoew perl) and it truly sucked.

    --Bob Niederman, http://bob-n.com

      That's why there's find :) (You'll want to use -exec rm {} \;, or maybe -exec rm -i {} \; the first time.)

      --
      Allolex