Created
November 8, 2016 12:33
-
-
Save x1024/50c563ba6aa9d4ca71010e4c746353bb to your computer and use it in GitHub Desktop.
"woman" shell command
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
function woman() { | |
if [ $# -eq 0 ]; then | |
man | |
else | |
man $1 | head -n `expr \`man $1 | wc -l\` \* 77 / 100 ` | $PAGER | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment