Files
qcd/qg.sh

11 lines
182 B
Bash
Raw Normal View History

2019-01-04 20:01:27 -06:00
echoerr() {
echo "$@" 1>&2;
}
theLine=$(IFS='\t' grep "^${*} " < ~/.qcdrc)
read -r quick path <<< "$theLine"
if [[ -z $theLine ]]
then echoerr Not found: $*
else echo $path
fi