[vox-tech] script to delete files

Bruce Wolk bawolk at ucdavis.edu
Tue Aug 3 06:20:09 PDT 2004


Milver S. Nisay said the following on 08/03/04 05:45:
> 
> 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

Use backquotes or xargs.

rm -f `find /home -name Bulk`
or
find /home -name Bulk | xargs rm -f

Bruce


More information about the vox-tech mailing list