It really blew my mind when Matthew Dalton <[EMAIL PROTECTED]> said:

> #!/bin/sh
> for file in thing.mp3 pants.txt yer.rtf others.html; do
>       find . -name $file | xargs rm -f
> done

Thats no good. You've got a pipe that you don't need. Try this:


#!/bin/sh
for file in thing.mp3 pants.txt yer.rtf others.html; do
        find . -name $file -exec rm -f {} \;
done

:-)

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+-----------------------------------------------------------+
"Python is the most efficient language I've ever used. It's 10 times
better than any of the other tools I have used. It's free, it's
object-oriented, it adapts to everything, it runs on everything. There
is almost an indescribable 'quality without a name' attraction on my
part."   --Bruce Eckel, Author of Thinking in Java

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to