e loop. Of course, on a working script, an option would be given for the user to quit this cycle, and proper cursor controls would be used, as would checking for zero length fields.
Here's what the output looks like when the script is ... ped, so that the function returned only .DOC. You would pass the following to the chop function:
MYDOCU... HOPPED=`chop $FILENAME 1`
# the first character would be chopped off !
Months
When generating repor