Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

find with -exec rm

Help
2008-05-28
2013-04-24
  • 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 abc.xxx -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 abc.xxx -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.