[vox-tech] script to delete files

Rod Roark rod at sunsetsystems.com
Tue Aug 3 06:42:21 PDT 2004


On Tuesday 03 August 2004 06:29 am, Jay Strauss wrote:
...
> find /home -name Bulk -print | xargs rm

or find can also do this internally:

find /home -name Bulk -exec rm -f {} \;

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

What he said.  :-)  For example try it with echo:

find /home -name Bulk -exec echo {} \;

-- Rod


More information about the vox-tech mailing list