[plug] bash script

Russell Steicke r.steicke at bom.gov.au
Wed Jan 10 09:59:09 WST 2001


On Wed, Jan 10, 2001 at 09:45:40AM +1000, Richard Sharpe wrote:
> At 09:38 AM 1/10/01 +0800, Kevin Shackleton wrote:
> >    n = n + 1
>      n=`expr n + 1`   # perhaps ...

  n=`expr $n + 1`
OR
  n=$(expr $n + 1)
OR
  n=$((n+1))
OR
  n=$[n+1]

Take your pick.  Note that there can't be spaces around the =.


-- 
Russell Steicke

-- Fortune says:
Let's just be friends and make no special effort to ever see each other again.



More information about the plug mailing list