Find path of a file only given the name [closed]

1

I'm trying to find the path of a file just by knowing its name. I've tried it in many ways including pwd but it does not do me any good. Is there any way to do this? (I have a guarantee that this is the only file with this name, so there are no different paths)

    
asked by anonymous 20.05.2016 / 00:03

1 answer

0

If you are on a POSIX system you can use the ntfw () function.

Or you write a recursive function that looks at a directory looking for the file.

    
21.05.2016 / 11:21