Skip to content

Instantly share code, notes, and snippets.

@legoscia
Forked from robertoaloi/efind.sh
Created December 12, 2012 14:54
Show Gist options
  • Select an option

  • Save legoscia/4268366 to your computer and use it in GitHub Desktop.

Select an option

Save legoscia/4268366 to your computer and use it in GitHub Desktop.

Revisions

  1. legoscia revised this gist Dec 12, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion efind.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/sh

    $ROOTDIR=which erl | sed -ne '/^ROOTDIR=/s///p'
    ROOTDIR=`which erl | sed -ne '/^ROOTDIR=/s///p'`
    find $ROOTDIR -name $1.erl | awk -F / '{print $(NF-2)}'
  2. @robertoaloi robertoaloi created this gist Dec 12, 2012.
    4 changes: 4 additions & 0 deletions efind.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/sh

    $ROOTDIR=which erl | sed -ne '/^ROOTDIR=/s///p'
    find $ROOTDIR -name $1.erl | awk -F / '{print $(NF-2)}'