I wrote a function for my .bashrc file to perform lookups user text data lists, and dict server:
Code: Select all
lu ()
{
# do a lu {word} and it will find a match and stop, lu by it self will go full screen to lookup lots of words
[ $# -eq 0 ] && clear;
while :; do
if [ $# -eq 1 ]; then
WORD=$1;
else
read -p "Word: " WORD;
fi;
# wordlist.txt is a kjv dictionary, bible_names is just that -- see attachments
grep --color -i "^$WORD" /home/mitch/Documents/faith/ref/wordlist.txt || grep --color -i "^ $WORD" /home/mitch/Documents/faith/ref/bible_names.txt;
ES=$?;
if [ "$ES" -gt 0 ]; then
dict $WORD >> /tmp/$$.txt && vimpager /tmp/$$.txt;
\rm /tmp/$$.txt;
fi;
[ $# -eq 1 ] && break;
done
}
Code: Select all
map <leader>b <ESC>:r !bible -f
I hope this helps other Linux folks, there are not to many of us.
.\\itch - 2 Cor. 5:17 Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new.