Often I have a file name and it's partial path, e.g. "content/docs/file.xml".
Is there a simple way to search for that file, without manually cutting into parts its name to provide directory name and file name separately?
It'd be great if find
worked in that way, so I could run find content/docs/file.xml
, but unfortunately it doesn't.
find -path *content/docs/file.xml
worked for me.