Skip to content

Instantly share code, notes, and snippets.

@vladimyr
Created April 1, 2021 05:45
Show Gist options
  • Save vladimyr/be3e13507c0d48ab423bd820462c3ce7 to your computer and use it in GitHub Desktop.
Save vladimyr/be3e13507c0d48ab423bd820462c3ce7 to your computer and use it in GitHub Desktop.
#!/bin/sh
base_url=https://manned.org
page="$1"
hash=$(curl -sSL "$base_url/$page" | grep -oP '(?<=data-hash=")[^"]{8}')
mdoc=$(curl -sSL "$base_url/$page/$hash/src")
echo "$mdoc" | man /dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment