Last active
January 29, 2018 00:34
-
-
Save ileathan/08b9386d3a25794cb0297cdf9a673a5b to your computer and use it in GitHub Desktop.
Install man pages without or with conflicting binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script assumes you have an ssh server running on your rooted android. | |
# USAGE: | |
# ./android-man-install.sh binaryName | |
# Locate the man page you want. From a computer that already has it: | |
location=$(sudo find / * | grep -P "$1\\..*\\.gz") | |
# Now scp over the file you just found (from remote pc to android). | |
scp $location yourAndroidDevice:$location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If perl regular expressions are not compiled into your grep (ppl scared of how powerful they are) remove
-P
and maybe adjust the regex.