[vox-tech] script to delete files

Jay Strauss me at heyjay.com
Tue Aug 3 06:29:07 PDT 2004


> anybody can advise me on deleting files automatically.
> i would like to delete files named Bulk automatically every 30th of the
> month, this would be done using cronjob, this i can do.
> but the script to search and delete the file named "Bulk", this is i am
> having problem, i need some kind of loop that will
> search the file under /home and delete it when found then search back
again
> to other folders under /home.
> anyone willing to help?
> thanks
> milver

I think I'm misunderstanding your requirement.
But it seems like you are asking for:

find /home -name Bulk -print | xargs rm

Please test this in a tmp directory to make sure
you understand what will happen and that this is
the desired effects

Jay



More information about the vox-tech mailing list