#!/bin/sh
#
# (C) Copyright IBM Corp. 2001
#
# $Id: jfind,v 1.10 2003/08/13 20:08:28 dgrove-oss Exp $
#
# @author Derek Lieber

# Search rvm source files for specified word.
# If no word is specified, list names of all rvm source files.

cd $RVM_ROOT/rvm

if [ $# = 0 ]; then
   find . -name CVS -prune -o -type f -not -name '*~' -print
else
   find . -name CVS -prune -o -type f -not -name '*~' -print | xargs fgrep -n -- "$*"
fi

