Skip to content

Instantly share code, notes, and snippets.

@retpolanne
Last active April 12, 2018 14:08
Show Gist options
  • Save retpolanne/37de63b4633d9fff4c31c66009098383 to your computer and use it in GitHub Desktop.
Save retpolanne/37de63b4633d9fff4c31c66009098383 to your computer and use it in GitHub Desktop.
#!/bin/bash
# The directory is different on arch, I'm too lazy to change it.
# install doc-rfc before using it
# https://news.ycombinator.com/item?id=16570470
RFCS_DIR="/usr/share/doc/RFC/"
RFC_QUERIED=$1
echo "$(find $RFCS_DIR -name '*'$RFC_QUERIED'*')" | head -1 | xargs zmore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment