Unix/Linux contains "find" command for searching files, but I do not know which command in android can be used to search for a file. Please give me an example.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
find
doesn't work for me on my device. Doesn't seem to be installed!However this sort of works for me:
(then in shell)
Hope this helps.
You may not find
find
andgrep
on all devices, so probably your safe bet ison Linux/OSX, or
on Windows.
Some android devices don't include include
find
orgrep
in$PATH
. However they might includebusybox
. (In my experience, most of them can usebusybox
). So you might use them as follow:and then
or something like that
Hope it will help.
As
find
andgrep
are not installed on devices I use, I am using the following:After that I'm able to search in the file tree.txt on my pc using whatever software I like (for example notepad++ or grep).
Here's a tiny script that should work in zsh and bash. It simulates what you might see if you could run
find /
on your Android device:Because it lists all the immediate child directories before descending into them, the output is a little out of order (for example
/system
is listed right away but/system/media
doesn't show up until much later). Depending on your needs, you could slap| sort -u
at the end of the script, but it should be all right for all your basicgrep
ing needs.