Skip to content

Instantly share code, notes, and snippets.

@robertoaloi
Created December 12, 2012 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save robertoaloi/4268342 to your computer and use it in GitHub Desktop.
Save robertoaloi/4268342 to your computer and use it in GitHub Desktop.
Find the application for your favourite Erlang module
#!/bin/sh
ROOTDIR=`which erl | sed -ne '/^ROOTDIR=/s///p'`
find $ROOTDIR -name $1.erl | awk -F / '{print $(NF-2)}' | awk -F - '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment