11 lines
182 B
Bash
11 lines
182 B
Bash
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
|