Mail Archives: djgpp/2000/05/18/01:46:29
Dr. J. Robert Lee <jrl AT netcom DOT com> wrote:
> group work fine with the Unix "find" command, but
> not with DOS.
[...]
> These are the suggestions for Unix. DOS anyone?
> find . -name "*.o" -exec rm {} \;
That line *does* work with the DJGPP ports of GNU find and GNU
fileutils, almost verbatim. You just have to remove the '\' before the
';', maybe. Actually, I'ld usually not use '-exec' for that, but
find . -name "*.o" | xargs rm -v
It's faster by not calling up 'rm' that often, and the '-v' lets you see
what's happening.
OTOH, with DJGPP's enhanced globbing code built into the C runtime
library, it's usually simpler to just
rm .../*.o
and be done with it.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -