Skip to content

Instantly share code, notes, and snippets.

@ileathan
Last active January 29, 2018 00:34
Show Gist options
  • Save ileathan/08b9386d3a25794cb0297cdf9a673a5b to your computer and use it in GitHub Desktop.
Save ileathan/08b9386d3a25794cb0297cdf9a673a5b to your computer and use it in GitHub Desktop.
Install man pages without or with conflicting binaries
#!/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
@ileathan
Copy link
Author

ileathan commented Jan 29, 2018

If perl regular expressions are not compiled into your grep (ppl scared of how powerful they are) remove -P and maybe adjust the regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment