On Thu, Jul 8, 2010 at 10:30 AM, Rich Shepard <[email protected]> wrote: > When I run this script: > > set $all="cat list" > for x in $all; `cat msg2 | mailx -s "Test Message"' $x > > I see this error: > > -bash: syntax error near unexpected token `cat msg2 | mailx -s "Test > Message"' > > What have I done incorrectly? Is it the semi-colon? > > Typing on two lines (beaking after the semi-colon) makes no difference. > > Rich > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug >
you need to add "do" after the semi colon. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
