Skip to content

Instantly share code, notes, and snippets.

@statico
Forked from anonymous/coffee-script-compile.sh
Created December 19, 2012 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statico/4339755 to your computer and use it in GitHub Desktop.
Save statico/4339755 to your computer and use it in GitHub Desktop.
function csc () {
if [ $# != 2 ]; then
echo "Usage: $0 file.coffee <lineno>"
return 1
fi
coffee -cp $1 | nl -ba -v0 | grep -C10 -E "^\\s+$2\\b"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment