Let me tell you what my sister's best friend told her last week about that Mr. Smith living in the little house next to the car park in that little village, what's it called, Br... no, Berekre... I don't know the name, but she said that Mr. Smith bought a budgie last week and it already flew away last Sunday! Isn't that funny?
#!/bin/bash inputFile=$1 shortenWords=4 numWords=`wc -w $inputFile | sed "s/^\([0-9]\+\).*/\1/g"` introText=`cat $inputFile | cut -d' ' -f 1-$shortenWords` outroText=`cat $inputFile | cut -d' ' -f $(expr $numWords - $shortenWords + 1)-$numWords` echo "That were $numWords words, let me shorten it for you:" echo "$introText... ...blah blah... ...$outroText"
That were 63 words, let me shorten it for you: Let me tell you... ...blah blah... ...Sunday! Isn't that funny?
phoneBot --callee=Karli --interruptions="Oh!;Mmh.;Well...;Really?" --speechrecognize=on | shortenKarli.sh