The R Project SVN R

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/sh
#
# ${RHOME}/cmd/help

subject=${1}
shift
for index in $*
do
    if [ -f ${index} ];
    then
    file=`grep "^${subject} " ${index} | cut -f 2`
    if test -n "${file}"
    then
        echo `dirname ${index}`/${file}
        exit 0
    fi
    fi
done    
echo