4 ms·
At least on OneDrive for Android, a bizarre thing is that search is _not_ equivalent to find . -iname. It is able to find search terms in the _content_ of docum
by thombles 1y ago
At least on OneDrive for Android, a bizarre thing is that search is _not_ equivalent to find . -iname. It is able to find search terms in the _content_ of documents but not their filenames.
- Ballas 1y agoWell, you can have the same functionality with find if you want it: find -type f -exec grep -Hn "_content_" {} \;
- rovr138 1y agogrep -RHn "_content_" .
- dotancohen 1y agoThough I much prefer this solution, the GP solution is better when there are non-text documents in the directory tree. Find is nice and that you can narrow it down by file name or file extension, without relying on bash globs.
- rovr138 1y agoYep I just did it more tongue-in-cheek like the unneeded cat commands. There’s definitely use cases. If you want to search for a keyword on the file name, that one’s great.