2a3
> # Ver. 2.0, Reldate 05Aug08
7,9c8,10
< MINLEN=45        # May need to change this value.
< #  Assume lines shorter than $MINLEN characters
< #+ terminate a paragraph.
---
> MINLEN=60        # May need to change this value.
> #  Assume lines shorter than $MINLEN characters ending in a period
> #+ terminate a paragraph. See exercises at end of script.
16,18c17,19
<   if [ "$len" -lt "$MINLEN" ]
<     then echo    # Add a blank line after short line.
<   fi  
---
>   if [[ "$len" -lt "$MINLEN" && "$line" =~ \[*\.\] ]]
>     then echo    #  Add a blank line immediately
>   fi             #+ after short line terminated by a period.
21c22,30
< exit 0
---
> exit
> 
> # Exercises:
> # ---------
> #  1) The script usually inserts a blank line at the end
> #+    of the target file. Fix this.
> #  2) Line 17 only considers periods as sentence terminators.
> #     Modify this to include other common end-of-sentence characters,
> #+    such as ?, !, and ".
