Skip to content

Instantly share code, notes, and snippets.

@robertoaloi
Created December 12, 2012 14:51
Show Gist options
  • 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