~earboxer/SwipeBehaviors

63d5759691386eafe4afe40b1111f424c2893d81 — Zach DeCook 4 months ago 7a2afa7 predictor
predictor: more generic space-splitting

support else"where in" case
1 files changed, 3 insertions(+), 2 deletions(-)

M predictor.sh
M predictor.sh => predictor.sh +3 -2
@@ 12,10 12,11 @@ saveWord(){
	IFS=''
	while read -r word; do
		echo "$word"
		if test "${word:0:1}" = " "; then
		if echo "$word" |grep -q " "; then
			printf %s "$word" | cut -d' ' -f1 >> "$lw"
			printf " " >> "$lw"
			mv "$lw" "$tw"
			word="$(printf %s "${word:1}"| tee "$lw")"
			word="$(printf %s "$word"| cut -d' ' -f2| tee "$lw")"
		else
			printf %s "$word" >> "$lw"
			word="$(cat "$lw")"