[plug] deleting stuff in batches
Stuart Midgley
stuart.midgley at ivec.org
Thu Nov 10 21:34:33 WST 2005
find . -name "*.wma" -exec rm {} \;
On 10/11/2005, at 21:32, Meryon Montgomery wrote:
> Hi, I trying to find a solution to a problem. At work (a school)
> the students have developed an annoying habit of hiding their music
> (which wastes an absolute shitload of space) on the server (debian
> sarge). I can find it easily enough using the command
>
> find | grep .wma
>
> and changing the extension for other file types. What I would like
> to know is how to pipe that output into a command/function that
> will then delete the files. I could then clean up the server in one
> hit rather than in a piece meal manner. Does anyone know how to do
> it? I plan on setting up a script to do, possibly as a cronjob.
>
> Thanks in advance
> Monts
--
Dr Stuart Midgley
Industry Uptake Program Leader
iVEC, 'The hub of advanced computing in Western Australia'
26 Dick Perry Avenue, Technology Park
Kensington WA 6151
Australia
Phone: +61 8 6436 8545
Fax: +61 8 6436 8555
Email: industry at ivec.org
WWW: http://www.ivec.org
More information about the plug
mailing list