Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: C-Shell Script
- To: tlug@example.com
- Subject: Re: tlug: C-Shell Script
- From: Jason Molenda <crash@example.com>
- Date: Wed, 2 Apr 1997 12:05:03 +0900 (JST)
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=US-ASCII
- In-Reply-To: <199704011251.VAA28548@example.com> from "Venkatesh RAGHAVAN" at Apr 1, 97 09:51:24 pm
- Reply-To: tlug@example.com
- Sender: owner-tlug
-------------------------------------------------------- tlug note from Jason Molenda <crash@example.com> -------------------------------------------------------- >From Venkatesh RAGHAVAN <raghavan@example.com> > > E_COORD=`expr \($E-$W\)\*\)\*\($X-1)\)/$COL+$W` > N_COORD=`expr $N-\(\($N-$S\)\*\($Y-1)/$ROWS\)` > echo $E_COORD $NCOORD As Paul noted earlier, these are not parsable expressions. In any case, it looks like expr assigns a different meaning to parentheses than that of expression grouping. I normally advise people to not script in csh, but in your case it works out in your benefit: csh can do simple math built-in. Try this: @ E_COORD = ($E - $W) * ( ($X - 1) / $COL + $W ) (I'm guessing that this is what you meant to write in the first line there.) See the csh man page for more information about the @ operator. Jason Nihon Cygnus ----------------------------------------------------------------- a word from the sponsor will appear below ----------------------------------------------------------------- The TLUG mailing list is proudly sponsored by TWICS - Japan's First Public-Access Internet System. Now offering 20,000 yen/year flat rate Internet access with no time charges. Full line of corporate Internet and intranet products are available. info@example.com Tel: 03-3351-5977 Fax: 03-3353-6096
- References:
- tlug: C-Shell Script
- From: Venkatesh RAGHAVAN <raghavan@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: C-Shell Script
- Next by Date: tlug: ISDN Card with Linux?
- Prev by thread: Re: tlug: C-Shell Script
- Next by thread: tlug: ISDN Card with Linux?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links