Newsgroups: comp.unix.questions Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!umich!sharkey!bnlux1.bnl.gov!dan.ccd.bnl.gov!abrams From: abrams@dan.ccd.bnl.gov (The Ancient Programmer) Subject: Bourne shell question Message-ID: <1991May8.192623.24160@bnlux1.bnl.gov> Sender: news@bnlux1.bnl.gov (sbcsvax news) Organization: Brookhaven National Lab. Upton NY 11973 Date: Wed, 8 May 1991 19:26:23 GMT How does one do a simple computation in a shell script? The c-shell does it very neatly. Running: #!/bin/csh set a = 10 set b = 1 @ c = $a - $b echo "a=$a, b=$b, c=$c" produces: a=10, b=1, c=9 but I've been unable to find out how to do this in the bourne shell. Any help will be greatly appreciated. -- INTERNET: abrams@bnl.gov |/ | ^ BITNET: abrams@bnlux0.BITNET |\ |__ /-\