I suggest running your script with the "-x" option. That way you will see what's executed, and the problem might become apparent.
Example: sh -x myscript.sh Or, add a line to the script: set -o xtrace On 7/9/24 11:35, Rich Shepard wrote: > I've a short script with this sed statement: > sed "s/NAME_GOES_HERE/$name/" msg | mailx -s "<title>" $addr > > It's applied to three lists, but on only one list does it produce this > error: > sed: -e expression #1, char 24: unknown option to `s' > > The messages go out and there's no `s' at character position 24 so I'm > puzzled why I see that message. > > Any thoughts? > > Rich -- Courtney Rosenthal / [email protected] / www.crosenthal.com
