Date: Wed, 4 Dec 1996 00:23:02 -0900 (AKST) From: "Christopher E. Brown" <cbrown@matnet.com> To: sln@public.jn.sd.cn Cc: questions@freebsd.org Subject: Re: shell programming Message-ID: <Pine.LNX.3.91.961204002008.13408A-100000@rommel.lostnet.org> In-Reply-To: <Pine.SOL.3.91.961204164334.2113A-100000@public.jn.sd.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Dec 1996 sln@public.jn.sd.cn wrote: > Hi, > > I want to calculate intergers under Bourne Shell, I input the following: > > a=10 <enter> > a='expr $a+10' <enter> > a=10 a= `expr $a + 10` Note the spaces and the ` ` not ' ' `expr $a + 10` says execute expr and grab the output 'expr $a + 10' say this is a literal (same as using " ") ---------------------------------------------------------------------------- Christopher E. Brown WL7CLA <cbrown@matnet.com> As folks might have suspected, not much survives except roaches, and they don't carry large enough packets fast enough... --About the Internet and nuclear war. ----------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.961204002008.13408A-100000>