С ударом
cat extract_words.sh
#!/bin/bash
concat=" "
min=$(($6+$7))
while read line
do
concat="$concat$line"
if test "${#concat}" -ge "$min" ; then
break
fi
done < "$1"
echo "${concat:$2:$3}" "${concat:$4:$5}" "${concat:$6:$7}"
Ты это так называешь
./extract_words.sh "textExample.txt" 8 9 77 6 189 7