On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:I like to use rm `find . -name *.class`. This will execute the find and output its response which just happens to be the input
> I thought I should be able to connect "find . -name *.class" to "rm"
> somehow using redirection or pipes but cannot get it to work.You were very close to one possible solution :)
find . -name *.class | xargs rm
xargs is a wonderful program that builds the command line from the
command given to it and the file names piped into it.--
Keith T. Garner [EMAIL PROTECTED]
STR Consultant http://www.str.com/ [EMAIL PROTECTED]
"Its hard to play pin the tail on the donkey when its running
around kicking you." -- Illinois Little Lotto radio commercial
to rm.
-- Justin Lee | It's not the weight of the stone that's holding you down. JEDI | It's the way it fascinates your mind. -- Tourniquet