Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- myfile=/usr/local/lib/ruby/gems/1.8/gems/`ls "/usr/local/lib/ruby/gems/1.8/gems" | grep -e "^$1" | tail -1`
- if [ -d $myfile ]
- then
- mate $myfile
- else
- echo "Couldn't find a gem called $1"
- fi
Add Comment
Please, Sign In to add comment