find with -exec rm

  • darkrainbow

    darkrainbow - 2008-05-28

    does anyone can give me an example how to use find and remove file(rm) together?
    I know that in unix env it would like similar to that:
    find . -name -exec rm {} \;

    what is the syntax to be under unixutil? thanks

    • Jason Anderson

      Jason Anderson - 2008-05-28

      Your example works for me, but without the backslash at the end.

      find . -name -exec rm {} ;

      Make sure rm is on your path.  Make sure your unxutils find.exe is being used, because the built-in Windows find can give you confusing errors.

    • darkrainbow

      darkrainbow - 2008-05-28

      Work for me as well.
      Thank you for your kind reply.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks