Skip to content

Instantly share code, notes, and snippets.

@legoscia
Forked from robertoaloi/efind.sh
Created December 12, 2012 14:54
Show Gist options
  • Save legoscia/4268366 to your computer and use it in GitHub Desktop.
Save legoscia/4268366 to your computer and use it in GitHub Desktop.
#!/bin/sh
ROOTDIR=`which erl | sed -ne '/^ROOTDIR=/s///p'`
find $ROOTDIR -name $1.erl | awk -F / '{print $(NF-2)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment