Created
December 12, 2012 14:51
-
-
Save robertoaloi/4268342 to your computer and use it in GitHub Desktop.
Find the application for your favourite Erlang module
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 | |
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