Menu

#142 find: missing argument to `-exec'

FindUtils
closed
GnuWin
Binaries (396)
5
2012-07-26
2004-05-07
No

I'm trying to run:
find winnt -type f -exec echo {} \;
and it gives me
find: missing argument to `-exec'
on linux this works fine
is there another escape char to use?
thanks

Discussion

  • GnuWin

    GnuWin - 2004-05-07

    Logged In: YES
    user_id=217802

    find winnt -type f -exec echo {} ;
    is the correct command in the MS-Windows command shell
    (command.com or cmd.exe), since ; is not a special symbol.
    However, you then get another error message:
    "cannot fork: Function not implemented"
    See
    http://gnuwin32.sourceforge.net/compile.html#subprocesses
    for an explanation.

     
  • GnuWin

    GnuWin - 2004-06-25

    Logged In: YES
    user_id=217802

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/

     
  • rmccullough

    rmccullough - 2005-04-13

    Logged In: YES
    user_id=1152063

    this is not fixed on win2k

    C:>c:\unix\bin\find winnt -type f -exec echo {};
    c:\unix\bin\find: missing argument to `-exec'

     
  • GnuWin

    GnuWin - 2005-04-13

    Logged In: YES
    user_id=217802

    Does quoting {}; with double quotes (") work?

     
MongoDB Logo MongoDB