Created
January 31, 2013 23:39
-
-
Save wasade/4687762 to your computer and use it in GitHub Desktop.
Quickly get back notes from https://gist.github.com/4686113
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
#!/bin/sh | |
# get notes by ID | |
if [ ! -e SUB.notes ] | |
then | |
echo "Cannot find SUB.notes!" | |
exit 1 | |
fi | |
grep -B 1 -A 1 $1 SUB.notes | less -S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment