about summary refs log tree commit diff
path: root/predictor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'predictor.sh')
-rwxr-xr-xpredictor.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/predictor.sh b/predictor.sh
index f2ad3bb..931ce88 100755
--- a/predictor.sh
+++ b/predictor.sh
@@ -11,6 +11,9 @@ saveWord(){
 	while read -r word; do
 		printf "$word" > "$lw"
 		echo "$word"
+		end="$(printf "$word."|wc -c)"
+		rm -f "$complete"
+		grep -m 5 "^$word." "$words" | cut -b$end-99 |tr '\n' '\t' |sed 's/\t$/\n/g' > "$sock"
 	done
 }
 typeSomehow(){