Skip to content

Instantly share code, notes, and snippets.

@JonasGroeger
Last active April 19, 2016 11:02
Show Gist options
  • Select an option

  • Save JonasGroeger/5eaa4ab1e72fed37e206fa163bb412aa to your computer and use it in GitHub Desktop.

Select an option

Save JonasGroeger/5eaa4ab1e72fed37e206fa163bb412aa to your computer and use it in GitHub Desktop.
Jump to manpage flag
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage (i.e.): manman curl -u"
exit 3
fi
if [ $# -eq 1 ]; then
man "$1"
exit 0
fi
man "$1" | less -p "^ +$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment