I was doing a
find . -iname '*sitesearch*' | grep demo
because I know the file should be
some/path/SiteSearch/demo/SiteSearch.html, but it turned out a person put the file in as
some/path/SiteSearch/demo/index.html, so the file cannot be found.
Is there a better way to do the search?
Such as for this case, if I do
find . -iname '*demo*' | grep -i sitesearch
it would have found it. But I don't want to always THINK what possibility it is and figure out what pattern to use. I just want a way that whenever the file and path have both of these 2 keywords, then print it out. For example, if there is a way to
ls all files will the full path on each line, then we can do
ls --some-flags | grep -i demo | grep -i sitesearch
or maybe another way / better way.