Skip to content

Instantly share code, notes, and snippets.

@wasade
Created January 31, 2013 23:39
Show Gist options
  • Save wasade/4687762 to your computer and use it in GitHub Desktop.
Save wasade/4687762 to your computer and use it in GitHub Desktop.
Quickly get back notes from https://gist.github.com/4686113
#!/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