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

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
  • Comment on Re: Re: Re: Re: cron job to delete files?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: cron job to delete files?
by allolex (Curate) on Jul 04, 2003 at 07:42 UTC

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

    --
    Allolex