If you are using Android Lollipop or above, install [Termux](https://play.google.com/store/apps/details?id=com.termux&hl=en_IN), install grep (if not already installed) by typing `apt install grep`, give Storage permission to Termux from Settings app so that Internal Storage can be accessed. And that's it. Enjoy your grep. You can also install busybox the same way in Termux (it appears to come installed with Termux per user iBug) and use its utilities. Installation and usage doesn't require elevated privileges. If you are using Android version before Lollipop, Robert's [answer](https://android.stackexchange.com/a/200996/96277) suggests a good way but some steps can be eliminated. Simply fetch the Android binary compatible with your processor from [here][1], rename it to busybox and push it into Android using [tag:adb] as: <pre> adb push busybox /data/local/tmp/ # don't push it into /sdcard/ as it is both unnecessary and removes executable bit from the binary which you cannot add without having busybox's or toybox'x chmod utility. </pre> You can now use busybox. You would want to setup an alias or change ENVIRONMENT variable of your shell accordingly to map that file. Alternatiely, while I have not tried them, some grep based apps are available in Play Store and can be found [here](https://play.google.com/store/search?q=grep&c=apps). [1]: https://github.com/Magisk-Modules-Repo/Busybox-Installer