Guest User

Untitled

a guest
Mar 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. myfile=/usr/local/lib/ruby/gems/1.8/gems/`ls "/usr/local/lib/ruby/gems/1.8/gems" | grep -e "^$1" | tail -1`
  4. if [ -d $myfile ]
  5. then
  6. mate $myfile
  7. else
  8. echo "Couldn't find a gem called $1"
  9. fi
Add Comment
Please, Sign In to add comment