Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: system(find) unable to find a file even if the file exists

by BrowserUk (Pope)
on Feb 14, 2018 at 09:22 UTC ( #1209120=note: print w/replies, xml ) Need Help??

in reply to system(find) unable to find a file even if the file exists

On windows, the find, command searches for text within a file, or set of files described by a wildcard expression:

C:\>find /? Searches for a text string in a file or files. FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename +[ ...]] /V Displays all lines NOT containing the specified string. /C Displays only the count of lines containing the string. /N Displays line numbers with the displayed lines. /I Ignores the case of characters when searching for the str +ing. /OFF[LINE] Do not skip files with offline attribute set. "string" Specifies the text string to find. [drive:][path]filename Specifies a file or files to search. If a path is not specified, FIND searches the text typed at the prompt or piped from another command.

Think simple grep-like tool.

Your use of -name suggests you are trying to use a *nix-style find command; which is available from various sources, but from the error you are getting, is not the one that is being run.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209120]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2018-08-18 17:55 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (185 votes). Check out past polls.